6 lines
148 B
MySQL
6 lines
148 B
MySQL
|
SELECT salesman_id,name
|
||
|
FROM salesman a
|
||
|
WHERE 1 <
|
||
|
(SELECT COUNT(*)
|
||
|
FROM customer
|
||
|
WHERE salesman_id=a.salesman_id);
|