programming-examples/sql/Subqueries/2. Write a query to display all the orders for the salesman who belongs to the city London.sql

7 lines
224 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*2. Write a query to display all the orders for the salesman who belongs to the city London.*/
SELECT *
FROM orders
WHERE salesman_id =
(SELECT salesman_id
FROM salesman
WHERE city='London');