第六章关系系统及其优化new.pptVIP

  • 4
  • 0
  • 约9.97千字
  • 约 51页
  • 2016-11-22 发布于江苏
  • 举报
代数优化 ?Sname ?c ? S SP P ? 优化: ?Sname ?c ? S SP P ? c’’: SP.Pnum=P.Pnum s: S.City=‘NANJING’ p: P.Pname=‘Bolt’ sp: SP.Quan1000 ?Sname ?c’ ? S SP P ? ?s ?sp ?p ?Sname ?c’’ ? S SP P ?s ?sp ?p 代数优化 ?Sname ?c ? S SP P ? 优化: ?Sname ?c ? S SP P ? s: S.City=‘NANJING’ p: P.Pname=‘Bolt’ sp: SP.Quan1000 ?Sname ?c’ ? S SP P ? ?s ?sp ?p ?Sname ?c’’ ? S SP P ?s ?sp ?p ?Sname S SP P ?s ?sp ?p 练习1 查询要求: 查询信息系学生选修的所有的课程的课程名称 写出关系代数及其原始语法树,并进行优化处理,画出优化后的语法树. SELECT Cname FROM Students,Courses,SC WHERE Students.sno=SC.sno and Courses.cno=SC.cno and Sdept=‘IS’; 练习1: ?Cname(? Studen

文档评论(0)

1亿VIP精品文档

相关文档