关系数据库语言-SQL.pptVIP

  • 2
  • 0
  • 约4千字
  • 约 18页
  • 2019-08-03 发布于天津
  • 举报
查询语句 - 连接(Join)操作 查计算机系的学生名单: select sno , sname from student , dep where student.dno=dep.dno and dname= ‘ 计算机系’ ; 查询语句 - 集合操作 查询同时选了c01和c02两门课的学生信息(学号) 查询语句 - 子查询 查物理课不及格的男生名单: 查询语句 - 子查询 select sno,sname from student,dep where student.dno =dep.dno and dname=`机械系` and sno in ( select sno from sc where cno in (select cno from course where cname=`物理`) and grade ( select avg(grade) from sc,course where sc.cno=course.cno and cname=`物理`) )

文档评论(0)

1亿VIP精品文档

相关文档