Skip to content

Commit 9ca6582

Browse files
authored
Create drop-type-1-orders-for-customers-with-type-0-orders.sql
1 parent 94e37fc commit 9ca6582

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Time: O(n)
2+
# Space: O(n)
3+
4+
SELECT COUNT(DISTINCT customer_id) AS rich_count
5+
FROM Store
6+
WHERE amount > 500;

0 commit comments

Comments
 (0)