Question: Find the id and color description of the products with at least 2 characteristics.
Schema: create table product_characteristics (product_id varchar, PRIMARY KEY (product_id)); create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)); create table products (product_id varchar, color_code varchar, PRIMARY KEY (product_id))
SQL: select t1.product_id, t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2