Question
Optimize the following two relational algebra queries (Your marks will depend on how well you present the key ideas of query optimization in your answer).
Optimize the following two relational algebra queries (Your marks will depend on how well you present the key ideas of query optimization in your answer). In addition to this, draw the query trees that correspond to queries before and after your optimisation.
(a) BOOKING.CustomerID,Origin,P rice(BOOKING.F lightNo=F LIGHT .F lightNo (BOOKING.CustomerID=CUST OMER.CustomerID(BOOKING F LIGHT CUST OMER)))
(b) R1.CustomerID(R1.CustomerID=R2.CustomerID((R1.Date6=R2.Date)(R1.Origin=0Canberra0) (R2.Origin=0Canberra0) (R1(BOOKING ./ F LIGHT ./ CUST OMER) R2(BOOKING ./ F LIGHT ./ CUST OMER))))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started