我需要像这样向班里展示智慧在DB中,我有单独的表(学生出勤率),哪个表存储这样的出勤率我只需要显示每个班的学生总数
这是我的查询
SELECT distinct CM.ClassName ,SB.SubjectName ,(select count(studentattendance.Day1) from studentattendance where day1 = 'P') as Present, convert(varchar(10),AttendanceDate ,126) as Attenda