Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the University DB with the following relations/tables: Student (studno, name, hons, tutor, year) | FK: tutor references Staff (lecturer) Staff (lecturer, roomno) Enroll (studno,

image text in transcribed

Consider the University DB with the following relations/tables: Student (studno, name, hons, tutor, year) | FK: tutor references Staff (lecturer) Staff (lecturer, roomno) Enroll (studno, courseno, labmark, exammark) stann FK: studno references Student (studno) Write queries in relational algebra that return the following: 1) The course numbers in which a student had a better exam mark than lab mark. 2) The names of the lecturers who are tutoring a student who had an exam mark worse than the lab mark. 3) The names of the lecturers who are tutoring a 3rd year student. 4) The room numbers of the lecturers who are tutoring a 3rd year student. 5) The names of the tutors who are tutoring more than one student 6) The names of the tutors who are tutoring no more than one student

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions