Write a query to display student ID and number of course registered by students. Display student ID only if student has registered for a course. Give alias name for the count as NOOFCOURSES. Sort the result based on count in descending and student ID ascending.
Answers
Answered by
6
Answer:
Explanation:
select Studid, count(courseid) as NOOFCOURSES from REGISTRATION
group by Studid
ORDER BY NOOFCOURSES DESC, Studid asc;
Similar questions
Hindi,
1 month ago
Math,
1 month ago
Hindi,
1 month ago
Political Science,
2 months ago
History,
2 months ago
Math,
9 months ago
Social Sciences,
9 months ago