你再试一下,这次应该可以了
select
s.studentName as 学生姓名,
sum(c.late) as 迟到,
sum(c.leave) as 早退
from
student s
inner join check c on s.studentID = c.studentID
group by
s.studentName
[此贴子已经被作者于2007-3-6 12:19:35编辑过]

你再试一下,这次应该可以了
select
s.studentName as 学生姓名,
sum(c.late) as 迟到,
sum(c.leave) as 早退
from
student s
inner join check c on s.studentID = c.studentID
group by
s.studentName
[此贴子已经被作者于2007-3-6 12:19:35编辑过]

2007-03-06 12:16
2007-03-06 12:29
2007-03-06 12:42
2007-03-06 13:10