Skip to content

Commit 9c1ab07

Browse files
authored
Create 2084-drop-type-1-orders-for-customers-with-type-0-orders.sql
1 parent 5d5349b commit 9c1ab07

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+
# Write your MySQL query statement below
2+
SELECT * FROM Orders
3+
WHERE (customer_id, order_type)
4+
IN (SELECT customer_id, MIN(order_type)
5+
FROM Orders
6+
GROUP BY customer_id);

0 commit comments

Comments
 (0)