Question: Question 2 . [ 1 2 MARKS ] Below is a slightly simplified version of a schema we used in lecture. A course's cName attribute
Question MARKS
Below is a slightly simplified version of a schema we used in lecture. A course's cName attribute gives its
full name, such as "Introduction to Databases", while dept has a value such as CSC and cNum has a
value such as
StudentsID surName, firstName
Offeringdept cNum sube Coursedept cNum
Coursedept cNum, cName
Offering dept, cNum, term, instructor
Took sID sube Student sID
Took Offering oID
TooksID oID, grade
Write a query in relational algebra that finds the SID and surname of each student who has a passing grade
in every firstyear course ever offered by department 'BIO', but never took a course offered by department
'CHE'. A firstyear course is one whose cNum is between and inclusive. A passing grade is a grade
over Use only the basic operators : Continue your answer on the next page if
needed.
Hint: As a first step, write the lefthand sides of a series of assignment statements; use good names
for the intermediate relations. This will help you solve the question, and also to earn part marks if you
make a mistake.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
