sql select count两张表中的两个字段问题

2024-12-21 13:13:38
推荐回答(1个)
回答1:

select a.class,count(b.student) as '学生数量'
from grade as a left join student as b
on a.class = b.class
group by a.class