programming-examples/sql/AggregateFunctions/Write a SQL statement to find the number of salesmen currently listing for all of their customers.sql

3 lines
157 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement to find the number of salesmen currently listing for all of their customers.*/
SELECT COUNT (DISTINCT salesman_id)
FROM orders;