Database: department_store
Question: What are the distinct names of customers with an order status of Pending, sorted by customer id?
SQL:
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  "Pending" ORDER BY T2.customer_id