We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d5349b commit 9c1ab07Copy full SHA for 9c1ab07
2084-drop-type-1-orders-for-customers-with-type-0-orders.sql
@@ -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