Question: Consider the following relational database schema S , ) ) ) and the following SQL query:select distinct tutor.name from ( staff join teach on (
Consider the following relational database schema
and the following SQL query:select distinct tutor.namefrom staff join teach on staffuid teach.uid as tutor,staff join teach on staffuid teach.uid as convener,coursewhere tutor.ccode convener.ccodeand tutor.sem convener.semand tutor.year convener.yearand convener.role 'convener'and tutor.role 'tutor'and convener.ccode course.ccodeand convener.name 'Graham'and course.level ;
Translate the above query into a relational algebra query, using only the operators in the table above. You may use relational algebra expressions to represent intermediate results if needed.
Draw the query tree for the relational algebra query you constructed for question
Optimise the relational algebra query.
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
