我有3列,分别是日期,名称,班级出席。我需要查找每个学生在特定日期参加的班级人数。
输入:
+------+--------+----------------+
| name | date | class_attended |
+------+--------+----------------+
| abc | 1/2/12 | 1 1 |
| aaa | 2/2/12 | 0 |
| abc | 1/2/12 | 1 |
| bbbb | 3/5/13 | 1 |
| cccc | 3/6/12 | 0 |
+------+--------+----------------+
输出:
student with "aaa" has attended "4" classes on "1/2/12"