今年目标:每天多学习,多积累,多分享
50个常用sql语句
学生表Student(S#,Sname,Sage,Ssex)
课程表 Course(C#,Cname,T#)
成绩表 SC(S#,C#,score...”三门的课程成绩,按如下形式显示: 学生id,,数据库,企业管理,英语,有效课程数,有效平均分
select S# as 学生id ,(select score from SC where SC.S#...:以如下形式显示:课程id,最高分,最低分
select l.C# as 课程id,l.score as 最高分,r.score as 最低分
from SC l ,SC as r where l.C...select count(*) from SC;
40、查询选修“叶平”老师所授课程的学生中,成绩最高的学生姓名及其成绩
select Student.Sname,scorefrom Student...Course where C# in (select C# from SC group by C#)
47、查询没学过“叶平”老师讲授的任一门课程的学生姓名
select Sname from