zoukankan      html  css  js  c++  java
  • 答案(2)

    答案28-45

    28.

    select tname,prof from teacher where prof not in(select prof from teacher where depart='计算机系' and prof in(select prof from teacher where depart='电子工程系'))

    29.

    select * from score where cno='3-105' and degree>any(select degree from score where cno='3-245')

    30.

    select * from score where cno='3-105' and degree>all(select degree from score where cno='3-245')

    31.

    select sname,ssex,sbirthday from student
    union
    select tname,tsex,tbirthday from teacher

    32.

    select sname,ssex,sbirthday from student where ssex=''
    union
    select tname,tsex,tbirthday from teacher where tsex=''

    33.

    select * from score a where degree<(select avg(degree) from score b where b.cno=a.cno)

    34.

    select tname,depart from teacher where tno in(select tno from course where cno in(select distinct cno from score))

    35.

    select tname,depart from teacher where tno not in(select tno from course where cno in(select distinct cno from score))

    36.

    select * from student group by class having count(*)>1 and ssex=''

    37.

    select * from student where sname not like '王%';

    38.

    select sname,YEAR(now())-YEAR(sbirthday) from student

    39.

    select max(sbirthday),min(sbirthday) from student

    40.

    select * from student order by class desc,sbirthday

    41.

    select * from teacher,course where teacher.tno = course.tno and tsex=''

    42.

    select * from score where degree=(select max(degree) from score)

    43.

    select * from student where ssex=(select ssex from student where sname='李军')

    44.

    select * from student where ssex=(select ssex from student where sname='李军') and class=(select class from student where sname='李军')

    45.

    select * from score where sno in(select sno from student where ssex='') and cno in(select cno from course where cname='计算机导论')
  • 相关阅读:
    yii2框架(一)安装
    修改hosts搭建本地站点
    php版本管理工具composer安装及使用
    nodejs学习笔记Node.js 调试命令
    angular自定义指令命名的那个坑
    MongoDB Windows环境安装及配置( 一)
    JavaSE 面试题: 类初始化和实例初始化等
    JavaSE 面试题: 成员变量与局部变量
    JavaSE 面试题: 方法的参数传递机制
    JavaSE 笔试题: 自增变量
  • 原文地址:https://www.cnblogs.com/Whitehat/p/8267565.html
Copyright © 2011-2022 走看看