sql面试题- (学生表_课程表_成绩表_教师表)

上传者: nizhengjia888 | 上传时间: 2021-03-11 21:13:30 | 文件大小: 171KB | 文件类型: ZIP
1、查询“001”课程比“002”课程成绩高的所有学生的学号; select a.S# from (select s#,score from SC where C#='001') a,(select s#,score from SC where C#='002') b where a.score>b.score and a.s#=b.s#; 2、查询平均成绩大于60分的同学的学号和平均成绩; select S#,avg(score) from sc group by S# having avg(score) >60; 3、查询所有同学的学号、姓名、选课数、总成绩; select Student.S#,Student.Sname,count(SC.C#),sum(score) from Student left Outer join SC on Student.S#=SC.S# group by Student.S#,Sname 4、查询姓“李”的老师的个数; select count(distinct(Tname)) from Teacher where Tname like '李%'; 5、查询没学过“叶平”老师课的同学的学号、姓名; select Student.S#,Student.Sname from Student where S# not in (select distinct( SC.S#) from SC,Course,Teacher where SC.C#=Course.C# and Teacher.T#=Course.T# and Teacher.Tname='叶平');

文件下载

资源详情

[{"title":"( 21 个子文件 171KB ) sql面试题- (学生表_课程表_成绩表_教师表)","children":[{"title":"sql面试题- (学生表_课程表_成绩表_教师表)","children":[{"title":"sql面试题一 学生成绩 - 浪子の无悔 - 博客园_files","children":[{"title":"2719571 <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"common.js <span style='color:#111;'> 57.10KB </span>","children":null,"spread":false},{"title":"jquery.js <span style='color:#111;'> 91.82KB </span>","children":null,"spread":false},{"title":"xml.gif <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"common.css <span style='color:#111;'> 17.09KB </span>","children":null,"spread":false},{"title":"ga.js <span style='color:#111;'> 38.93KB </span>","children":null,"spread":false},{"title":"osd.js <span style='color:#111;'> 28.65KB </span>","children":null,"spread":false},{"title":"style.css <span style='color:#111;'> 16.59KB </span>","children":null,"spread":false},{"title":"google_ads_gpt.js <span style='color:#111;'> 56.58KB </span>","children":null,"spread":false},{"title":"google-analytics.js <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"shStyle.css <span style='color:#111;'> 7.59KB </span>","children":null,"spread":false},{"title":"u34179.jpg <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"json2.js <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"logo.gif <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"icon_weibo_24.png <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"gpt.js <span style='color:#111;'> 38.12KB </span>","children":null,"spread":false},{"title":"copycode.gif <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"encoder.js <span style='color:#111;'> 6.69KB </span>","children":null,"spread":false},{"title":"common2.css <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"syntaxHighlighter.js <span style='color:#111;'> 75.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"sql面试题一 学生成绩 - 浪子の无悔 - 博客园.htm <span style='color:#111;'> 141.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 金协庆 :
    用来自学是不错的资料!谢谢分享!
    2016-04-28
  • wdzcn :
    我们拿来做公司的面试题。哈哈。挺好,大家都好好练练
    2014-08-15
  • minglao110 :
    初学者可以拿来练手
    2014-08-13
  • 摩天轮不了 :
    MD 这是oracle的? 坑爹
    2014-07-15
  • 小9 :
    用来给学生做练习,是很好的资料
    2014-06-27

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明