Medium🔥||🔝TOP 2023🤝|| Explained 📝|| SQL50/29✅
Hello LeetCode fans,\nBelow I presented a solution to the problem (1045. Customers Who Bought All Products).\nIf you found it useful or informative,\nClick the 
# Hello LeetCode fans,\nBelow I presented a solution to the problem (1045. Customers Who Bought All Products).\nIf you found it `useful` or `informative`,\nClick the "`UPVOTE`" button below and it means I was able to `help someone`.\nYour UPVOTES encourage me and others who are `working hard` to improve their problem solving skills.\n# Code\n```\nSELECT customer_id\n FROM customer c\n  GROUP BY customer_id\n   HAVING count(distinct product_key)=(SELECT count(distinct product_key) \n    FROM product)\n\n```
['MySQL']