Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CourseId CourseCode CourseName Capacity InstructorId 8 8 2 9 ENGL 8 5 1 English Literature 1 0 0 1 6 2 2 9 HIST 3
CourseId CourseCode CourseName Capacity InstructorId
ENGL English Literature
HIST European History
HIST American History
BIOL Genetics
BIOL Animal Behavior
Instructor
InstructorId InstructorName Rank Department
Noa Chow Assistant Professor English
Bob Gray Professor Biology
Gil Chen Professor History
An arrow points from the Course table's InstructorId column to the Instructor table's primary key column.Note: Both tables may not be necessary to complete this level.Complete the following correlated subquery to find courses with a capacity less than the instructor's average course capacity. The query should return the rows containing European History and Genetics.
Type your code here
SELECT
FROM Course C
WHERE Capacity
;SELECT
FROM Course
WHERE InstructorId
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