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
What are the distinct names of customers with an order status of Pending, sorted by customer id?
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
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 = value order by t2 . customer_id
What are the distinct names of customers with an order status of Pending , sorted by customer id ?