Question: Consider the SQL Query given below. 1 0 marks SELECT Passenger. ticketno FROM Train, Passenger, Inspector WHERE Train. tno = Inspector.no AND Train.Date = '
Consider the SQL Query given below.
marks
SELECT Passenger. ticketno FROM Train, Passenger, Inspector WHERE Train. tnoInspector.no AND Train.Date AND Train.to Chennai' AND Passenger.nameInspector.name
a Convert the following query into relational algebra expressions. marks
b Reduce the relational algebra expression to an equivalent expression by applying the equivalence rules marks
c Draw query trees for the two relational algebra expressions. marks
d State which tree is better in terms of cost of the query execution and why? mark
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
