What are the names of the products that have buying price < 100
select product_name from products where typical_buying_price < 100
Show their distinct names.
select distinct product_name from products where typical_buying_price < 100
What about for those with color "black"?
select distinct t1.product_name from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code where t2.color_description = "red"
For the characteristic name "warm" instead?
select distinct t1.product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t3.characteristic_name = "warm"