access 2003用select语句的两个问题

2024-12-24 12:24:14
推荐回答(2个)
回答1:

SELECT count(students.教师号) as 人数, teachers.姓名
from students,teachers
where teachers.教师号 = students.教师号
group by teachers.教师号, teachers.姓名

回答2:

SELECT count(students.教师号) as 人数, teachers.姓名
from students inner join teachers
on teachers.教师号 = students.教师号
group by teachers.教师号