SQL Exercises: Find the number of salesmen currently listing for all of their customers
SQL Aggregate Functions: Exercise-3 with Solution
Write a SQL statement to find the number of salesmen currently listing for all of their customers.
Sample table: orders
SELECT COUNT (DISTINCT salesman_id) FROM orders;
Output of the Query:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?