SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
SELECT T1.subject_id , T2.subject_name , COUNT ( * ) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT ( * ) ASC
select t1 . subject_id , t2 . subject_name , count ( * ) from courses as t1 join subjects as t2 on t1 . subject_id = t2 . subject_id group by t1 . subject_id order by count ( * ) asc
Find the subject ID , name of subject and the corresponding number of courses for each subject , and sort by the course count in ascending order .