日期:2014-05-18 浏览次数:20661 次
select a.sid,a.sname, sum(case tingke when '没有停课' then 1 else 0 end) as 没有停课 from student a,course b,selectcourse c where a.sid=c.sid and b.cid=c.cid group by a.sid,a.sname