この私のSQLコード
Attendance
----------
Studentid | Date | Status
--------------------------------
1 | 2017-01-01 | Present
1 | 2017-01-02 | Present
1 | 2017-01-03 | Absent
1 | 2017-01-04 | Presnt
2 | 2017-01-01 | Absent
2 | 2017-01-02 | Present
2 | 2017-01-03 | Absent
2 | 2017-01-04 | Presnt
のように私の表Iは、このような出力を得るためにMySQLのクエリを書きたいです。
StudentID | PresentCount | AbsentCount
1 | 3 | 1
2 | 2 | 2