programming-examples/sql/Subqueries/20. Write a query to find all the salesmen for whom there are customers that follow them.sql

6 lines
182 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*20. Write a query to find all the salesmen for whom there are customers that follow them.*/
SELECT *
FROM salesman
WHERE city IN
(SELECT city
FROM customer);