Consider a relational database for a university registrar's office, with
relations student, class, instructor, teaches, and taking. The schemes
of these relations are:
Student-scheme = (name, standing, student-num)
Class-scheme = (department, number, days, time, place, enrollment)
Instructor-scheme = (name, department, office)
Teaches-scheme = (name, office, department, number)
Taking-scheme = (student-num, department, number, grade)
where the value of attribute standing is one of {freshman, sophomore,
junior, senior}, and the department attributes in Teaches-scheme and
Taking-scheme refer to the class, rather than to the instructor or student.
The teaches relation is intended to represent relationships between
instructors and classes, and the taking relation is intended to represent
relationships between students and classes.
Write relational algebra expressions for each of the following queries: