Skip to content

Commit 19362e4

Browse files
committed
linted 1045
1 parent 6d7fd10 commit 19362e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

leetcode/medium/1045. Customers Who Bought All Products.sql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ Return the result table in any order.
3131
*/
3232

3333
WITH Customer_products AS (
34-
SELECT customer_id, COUNT(DISTINCT product_key) as c
34+
SELECT
35+
customer_id,
36+
COUNT(DISTINCT product_key) AS c
3537
FROM Customer
3638
GROUP BY customer_id
3739
)
40+
3841
SELECT customer_id
3942
FROM Customer_products
4043
WHERE c = (
4144
SELECT COUNT(1)
4245
FROM Product
43-
)
46+
)

0 commit comments

Comments
 (0)