Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 evel courses convened by Graham select distinct tutor.name
from staff join teach on staffuid teach.uid as tutor,
staff join teach on staffuid 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 ; answer: Translate the above query into a relational algebra query, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started