Consider the following UNIVERSITY DB, the given SQL query, and the provided canonical tree. Apply Transformation rules and heuristic algorithm to optimize the query. Student(sno,sname,address,phone) Professor(pno, ssn, pname, address, phone) Lecture(lno, pno, time, date) Attend(sno,lno) SELECT s.sname FROM student s, attend a, lecture l, professor p WHERE s.sno=a.sno AND a.lno=l.lno AND l.pno=p.pno and p.ssn=“100456”

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
100%

Consider the following UNIVERSITY DB, the given SQL query, and the provided canonical tree. Apply Transformation rules and heuristic algorithm to optimize the query.

Student(sno,sname,address,phone) Professor(pno, ssn, pname, address, phone) Lecture(lno, pno, time, date) Attend(sno,lno)

SELECT s.sname
FROM student s, attend a, lecture l, professor p
WHERE s.sno=a.sno AND a.lno=l.lno AND l.pno=p.pno and p.ssn=“100456”

It s.sname
Os.sno=a.sno AND a.Ino=l.Ino AND I.pno=p.pno AND p.ssn="100456"
Student
Attend
Lecture
Professor
Transcribed Image Text:It s.sname Os.sno=a.sno AND a.Ino=l.Ino AND I.pno=p.pno AND p.ssn="100456" Student Attend Lecture Professor
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Complex Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage