Select the code of the product that is cheapest in each product category.
select code, name, min(price) from products group by name