Answered step by step
Verified Expert Solution
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,
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
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