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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!