programming-examples/sql/Subqueries/5. Write a query to find all orders attributed to a salesman in New york.sql
2019-11-18 14:05:53 +01:00

7 lines
210 B
SQL

/*5. Write a query to find all orders attributed to a salesman in New york.*/
SELECT *
FROM orders
WHERE salesman_id IN
(SELECT salesman_id
FROM salesman
WHERE city ='New York');