programming-examples/sql/Subqueries/5. Write a query to find all orders attributed to a salesman in New york.sql

7 lines
210 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*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');