CS1103/Assignments/As4/Problem84.sql

4 lines
146 B
MySQL
Raw Normal View History

2022-10-07 00:48:09 -03:00
select BOOK_SUBJECT, count(BOOK_SUBJECT) as `Books In Subject`
from BOOK
group by BOOK_SUBJECT
order by count(BOOK_SUBJECT) desc, BOOK_SUBJECT;