SELECT orders.id, customers.name
FROM orders
INNERJOIN customers ON orders.customer_id = customers.id;
This query performs an INNER JOIN between the "orders" and "customers" tables to retrieve the order ID and the corresponding customer name based on a matching customer identifier.
PromptDB can make mistakes. Please double-check responses.