Question: staff = { uid , name } , course = { ccode , name, level } , teach = { uid , ccode, sem, year,

staff ={uid, name}, course ={ccode, name, level}, teach ={uid, ccode, sem, year, role}, consider the query: [list the names of all tutors in 2000 evel courses convened by Graham] select distinct tutor.name
from (staff join teach on (staff.uid = teach.uid)) as tutor,
(staff join teach on (staff.uid = teach.uid)) as convener, course
where tutor.ccode = convener.ccode
and tutor.sem = convener.sem
and tutor.year = convener.year
and convener.role = 'convener'
and tutor.role = 'tutor'
and convener.ccode = course.ccode
and convener.name = 'Graham'
and course.level =2000; answer:1. Translate the above query into a relational algebra query, You may use relational algebra expressions to represent intermediate results if needed. 2 Draw the query tree for the relational algebra query you constructed for question (1).3. Optimise the relational algebra query.

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!