zoukankan      html  css  js  c++  java
  • SQL作业(下)

    38 select s.sname,to_char(sysdate,'yyyy')-to_char(s.sbirthday,'yyyy') from student s where s.sbirthday is not null

    39 select max(to_char(s.sbirthday,'mm/dd')),min(to_char(s.sbirthday,'mm/dd')) from student s

    40 select s.* from student s where s.sbirthday is not null order by s.class,to_char(sysdate,'yyyy')

    41 select c.tno,c.cno from course c inner join teacher t on t.tno=c.tno where t.tsex='男'

    42 select s.sno,s.cno,s.degree from score s where degree=(select max(degree) from score)

    43 select s.sname from student s where s.ssex in (select ssex from student where ssex='男')

    44 select s.sname from student s where s.ssex in (select ssex from student where ssex='男') and s.class in
    (select class from student where sname='李军')

    45 select s.* from score s inner join course c on c.cno=s.cno inner join student ss on ss.sno=s.sno
    where ss.ssex='男' and c.cname='计算机导论'

  • 相关阅读:
    Cookie
    JS开发常用工具函数
    手动搭建Vue之前奏:搭建webpack项目
    Redis的下载与安装
    Redis官方Tutorial
    Redis之datatype概述
    18 SQL优化
    16 SQL Mode
    17 MySQL的小技巧
    14 事务控制和锁定语句
  • 原文地址:https://www.cnblogs.com/kaililikai/p/5972092.html
Copyright © 2011-2022 走看看