Database: customers_and_invoices
Question: Show the product ids and the number of unique orders containing each product.
SQL:
SELECT product_id ,  count(DISTINCT order_id) FROM Order_items GROUP BY product_id