Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

What are the benefits and barriers of medical tourism

Answered: 1 week ago