CREATE TABLE customers (customer_name VARCHAR2, customer_id VARCHAR2)
CREATE TABLE customer_orders (customer_id VARCHAR2, order_status_code VARCHAR2)

Return the distinct name of customers whose order status is Pending, in the order of 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" "T1" JOIN "customer_orders" "T2" ON "Pending" = "T2"."order_status_code" AND "T1"."customer_id" = "T2"."customer_id" ORDER BY "T2"."customer_id"