programming-examples/sql/Subqueries/20. Write a query to find all the salesmen for whom there are customers that follow them.sql
2019-11-18 14:05:53 +01:00

6 lines
182 B
SQL

/*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);