SELECt student_id, section, sum(case when response=1 then 1 else 0 end) as totalFROM raw_data_r GROUP BY student_id, section
请注意,没有
WHERe条件。

SELECt student_id, section, sum(case when response=1 then 1 else 0 end) as totalFROM raw_data_r GROUP BY student_id, section
请注意,没有
WHERe条件。