Ответ к задании 2 другой(
select product_name, units_in_stock, contact_name, phone
from products
join suppliers using (supplier_id)
join categories using (category_id)
where discontinued = 0 and units_in_stock < 20 and category_name in ('Beverages', 'Seafood')
order by units_in_stock