b.SELECT S.Ss#,S.Sname,COUNT(SC.C#),SUM(SC.score) FROM Student S LEFT JOIN SC ON S.Ss#=S# GROUP BY S.S#
1) select s.Name from Student s join StuCur c on s.id=c.sidjoin Course cu on cu.id=c.cid where cu.Name='自然'
2) select c.Name from Course c join StuCur sc on c.id=sc.CID
join Student s on sc.sid=s.id where s.EntranceTime between '1999-01-01' and '2012-12-31'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)