大家好,我正在尝试计算特定 ID 的特定项目
数据库结果
name remarks
joseph greggory On time
joseph greggory On time
lara joy On time
lara joy Absent
Mark Joben On time
Mark Joben Absent
Isnaira Lyn Absent
Isnaira Lyn Absent
结果应该是
name On time Late Absent
joseph Greggory 2 0 0
Lara Joy 1 0 1
Mark Joben 1 0 1
Isnaira Lyn 0 0 2
提前谢谢你们