We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bea04d commit 08983feCopy full SHA for 08983fe
database/medium/customers_who_bought_all_products.sql
@@ -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