SQL - Subqueries
Consider tables:
Orders(order_id, customer_id, amount)
Customers(customer_id, city)
What is the output of this query?
Orders(order_id, customer_id, amount)
Customers(customer_id, city)
What is the output of this query?
SELECT order_id FROM Orders WHERE customer_id IN (SELECT customer_id FROM Customers WHERE city = 'New York');
