Answered step by step
Verified Expert Solution
Link Copied!

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
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions