Skip to content

Commit 08983fe

Browse files
committed
customers_who_bought_all_products.sql
1 parent 3bea04d commit 08983fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Write your PostgreSQL query statement below
2+
SELECT customer_id
3+
FROM Customer
4+
GROUP BY customer_id
5+
HAVING COUNT(DISTINCT product_key) = (
6+
SELECT COUNT(1)
7+
FROM Product)

0 commit comments

Comments
 (0)