Database: department_store
Question: What are the distinct ids of customers who made an order after any order that was Cancelled?
SQL:
SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  "Cancelled")