17年底数据库面试 合集版,低积分,福利版

时间:2021-01-17 05:17:09
【文件属性】:

文件名称:17年底数据库面试 合集版,低积分,福利版

文件大小:47KB

文件格式:DOCX

更新时间:2021-01-17 05:17:09

数据库 面试 sql 题库

18、查询各科成绩最高和最低的分:以如下形式显示:课程ID,最高分,最低分     SELECT L.C# As 课程ID,L.score AS 最高分,R.score AS 最低分     FROM SC L ,SC AS R     WHERE L.C# = R.C# and         L.score = (SELECT MAX(IL.score)                       FROM SC AS IL,Student AS IM                       WHERE L.C# = IL.C# and IM.S#=IL.S#                       GROUP BY IL.C#)         AND         R.Score = (SELECT MIN(IR.score)                       FROM SC AS IR                       WHERE R.C# = IR.C#                   GROUP BY IR.C#                     );


网友评论