Question: Part 2 [ 3 0 points ] Consider the schema below: Student ( sID , lastName, firstName, dID, email, address ) Department ( dID ,
Part points
Consider the schema below:
StudentsID lastName, firstName, dID, email, address
DepartmentdID Name, campus, chair, budget
CoursedID cNumber, Name
FacultymembereID lastName, firstName, email, address, dID, position, title
CourseInstructoreID lastName, firstName, email, address dID, status
OfferingoID dID, cNumber, year, term, eID
TooksID oID, grade
The following inclusion dependencies denote the foreign key constraints on this schema:
StudentdIDsubseteq DepartmentdID
CourseInstructordIDsubseteq DepartmentdID
FacultymemberdIDsubseteq DepartmentdID
CoursedIDsubseteq DepartmentdID
OfferingeIDsubseteq CourseInstructoreID
OfferingdID cNumbersubseteq CoursedID cNumber
TooksIDsubseteq StudentsID
TookoIDsubseteq OfferingoID
dID represents the code of a department and has values such as CSC MAT, ITEC, etc.
term has values from Fall Winter, Summer
grade has integer values between and
status has values from mathbfC ImathbfS LmathbfF M corresponding to the following designations: course instructor, sessional lecturer, and faculty member. Some faculty members are course instructors, but not all. Some course instructors are faculty members, but some are not. If a faculty member is a course instructor, they will be listed in the Courseinstructor table with the same eID they were assigned in the FacultyMember table.
Question points
Write a query in Relational Algebra that returns the sID and last name of each student who has taken at least one course with an instructor who is also a faculty member
Question points
Write a query in Relational Algebra that returns the eID and last name of each course instructor who had a heavy teaching load for at least one term. A heavy term teaching load, for an instructor, is defined as teaching at least three different courses in that term.
Question points
Write a query in SQL that returns all the students who were on the Dean's List at least once while they were at taking courses at the University. To be on the Dean's List, a student must have obtained a grade greater or equal to in all the courses they took that term.
Question points
Write a query in SQL that returns the dID of those departments that never offered a super easy course. A super easy course is a course for which none of the students taking it ever obtained a grade strictly lower than
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
