Write a SQL query listing departments by student count, then by name.
Unlock detailed company stats for this questionUpgrade
Given tables Student(Id, Name, DeptId) and Department(Id, Name), write an SQL query to list all departments sorted by number of students (descending); if two departments have the same student count, sort them alphabetically by department name.
Community answers
No answers contributed by the community yet.
Related questions
Given Student, Department and Events tables, write a query to find the average marks of each department.Given Student, Department and Events tables, write a query to find out how many students attended each event.Write a query to find the total salary expense for each department.Related courses

Course

Course
Course
