Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a. (7 pts) Formulate a SQL query: In the course table, remove all courses that do not have any corresponding course section. No screenshot is
a. (7 pts) Formulate a SQL query: In the course table, remove all courses that do not have any corresponding course section. No screenshot is needed.
b. (6 pts) After the statement in a is executed, what will happen to rows in other tables (e.g., prereq) that has a foreign key to course.course_id and depend on the rows that were removed in a? why (be very specific)?
The enclosed.sql file defines the following university database where primary key for each table is underlined department.dept-name is primary key (i.?., unique) course.title is not unique instructor.name is not globally unique but is unique within the department student.name is not globally unique but is unique within the department student takes ID ID name dept name tot cred section course department advisor title dept name credits s id i id semester building budget time slot ilding room ?10 time slot id end time instructor classroom ID ame dept name teaches ID sec id ear capacity salary The enclosed.sql file defines the following university database where primary key for each table is underlined department.dept-name is primary key (i.?., unique) course.title is not unique instructor.name is not globally unique but is unique within the department student.name is not globally unique but is unique within the department student takes ID ID name dept name tot cred section course department advisor title dept name credits s id i id semester building budget time slot ilding room ?10 time slot id end time instructor classroom ID ame dept name teaches ID sec id ear capacity salary
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