You are given the following schema of a University, where primary keys of each table are underlined and symbol (#) symbolises foreign keys: Student (student_id, first_name, last_name, date_of_birth) Course (course_id, #professor_id, course_name, credits, programme) Exam (#student_id, #course_id, exam_date, grade) Professor (professor_id, first_name, last_name, research_field) -Use DOMAIN or TUPLE RELATIONAL CALCULUS to write the following queries: a) Find the last names of professors who have taught a course with 6 credits b) Find all student IDs of students who are born before January 1, 1999 or have passed at least one exam with a 10 c) Find the last names of professors who have never taught a course d) Find the last name(s) of the professor(s) who teach the most courses
You are given the following schema of a University, where primary keys of each table are
underlined and symbol (#) symbolises foreign keys:
Student (student_id, first_name, last_name, date_of_birth)
Course (course_id, #professor_id, course_name, credits, programme)
Exam (#student_id, #course_id, exam_date, grade)
Professor (professor_id, first_name, last_name, research_field)
-Use DOMAIN or TUPLE RELATIONAL CALCULUS to write the
following queries:
a) Find the last names of professors who have taught a course with 6 credits
b) Find all student IDs of students who are born before January 1, 1999 or have passed at least
one exam with a 10
c) Find the last names of professors who have never taught a course
d) Find the last name(s) of the professor(s) who teach the most courses
Step by step
Solved in 3 steps with 1 images