Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 336 Bytes

1045. Customers Who Bought All Products.md

File metadata and controls

11 lines (10 loc) · 336 Bytes

1045. Customers Who Bought All Products

Question Link

Solution

# Write your MySQL query statement below
select customer_id from Customer
group by customer_id
having count(distinct product_key)=(select count(product_key) from Product)
  • 2024.06.04