Question: 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
8829 ENGL851 English Literature 1001
6229 HIST318 European History 503
9406 HIST149 American History 753
6898 BIOL2 Genetics 1252
2633 BIOL683 Animal Behavior 1752
Instructor
InstructorId InstructorName Rank Department
1 Noa Chow Assistant Professor English
2 Bob Gray Professor Biology
3 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!