SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id
How many different products correspond to each order id?
SELECT order_id , count ( DISTINCT product_id ) FROM Order_items GROUP BY order_id
select order_id , count ( distinct product_id ) from order_items group by order_id
How many different products correspond to each order id ?