Write an SQL query to fetch the no. of workers for
each department in the descending order.
Answers
Answered by
13
Explanation:
You can use the COUNT(*) function in the ORDER BY clause to sort the number of rows per group. For example, the following statement gets the number of employees for each department and sorts the result set based on the number of employees in descending order.
Hope it's your helpfull.
Similar questions
English,
2 months ago
English,
2 months ago
India Languages,
2 months ago
Science,
4 months ago
Hindi,
4 months ago
Math,
10 months ago
Business Studies,
10 months ago