SELECT classroom ,  count(DISTINCT grade) FROM list GROUP BY classroom
For each classroom, report the classroom number and the number of grades using it.
SELECT classroom , count ( DISTINCT grade ) FROM list GROUP BY classroom
select classroom , count ( distinct grade ) from list group by classroom
For each classroom , report the classroom number and the number of grades using it .