Question: Consider the SQL Query given below. SELECT Passenger. ticketno FROM Train, Passenger, Inspector WHERE Train. tno = Inspector.tno AND Train.Date = ' 0 5 -
Consider the SQL Query given below.
SELECT Passenger. ticketno FROM Train, Passenger, Inspector WHERE Train. tnoInspector.tno AND Train.Date'AND Train.to'Chennai' AND Passenger.nameInspector.name Passenger.nameInspector.name
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
