我正在尝试汇总我的数据,以说明老师安排的课程数量。
基本上我的数据如下:
Id | Subject
123| algebra
123| geometry
123| algebra II
456| calc
456| calc
789| geometry
789| geometry
789| calc
and I need it to look like this:
Id | Subject count
123| 3
456| 1
789| 2
I have no idea where to start because I don't want it to simply count the number of courses they teach,I want the DIFFERENT courses. Please help!