《SQL语言》-课件设计(公开).pptVIP

  • 24
  • 0
  • 约1.38万字
  • 约 72页
  • 2018-12-21 发布于广西
  • 举报
使用In查询来改写Intersect查询 查找rating7且年龄25的水手编号 Intersect查询 Select S.sid from Sailors S where s.rating7 intersect select S2.sid from Sailors S2 where S2.age25 使用In查询来改写Intersect查询 查找rating7且年龄25的水手编号 In查询 Select S.sid from Sailors S where s.rating7 and S.sid in( select S2.sid from Sailors S2 where S2.age25 ) 查找最年长的水手的年龄和名字 ? 在18岁以上水手中,对于每个rating级别中最少有两个水手以上的组中最年轻水手的年龄 在18岁以上水手中,对于每个rating级别中最少有两个水手以上的组中最年轻水手的年龄 查找每条红色船只被租用的次数 在三个关系连接之上的一个分组操作 如果去掉颜色选择条件,查询结果如何? 如果去掉Sailors和与S.sid相关的条件,情况会怎么样? 在18岁以上水手中,对于每个rating级别中最少

文档评论(0)

1亿VIP精品文档

相关文档