May 17, 2022 11:11 am
SQL Query to find salesmen have more than one customer
SELECT salesman_id, COUNT(*) customer_id FROM ( SELECT salesman_id, customer_id FROM Salesman_Customers GROUP BY 1,2 )a GROUP BY 1 HAVING customer_id > 1
1 Reply
May 17, 2022 11:26 am
Query and the results attached.
SQL Query to find salesmen have more than one customer.