Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CourseId CourseCode CourseName Capacity InstructorId 1 2 1 0 BUS 6 1 Business Analytics 5 0 2 7 5 1 1 HIST 3 1 American

CourseId CourseCode CourseName Capacity InstructorId
1210 BUS61 Business Analytics 502
7511 HIST31 American History 251
1908 MATH419 Linear Algebra 1253
2867 BUS822 Financial Management 2002
9712 MATH745 Calculus 1503
Instructor
InstructorId InstructorName Rank Department
1 Eli Ball Assistant Professor History
2 Kai Rios Associate Professor Business
3 Ken Rice Associate Professor Math
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 each instructor's course with the lowest capacity. The query should return the rows containing Business Analytics, American History, and Linear Algebra.
/* 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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

Starting from Equation (20.13), show that I, / W j = Err x a j.

Answered: 1 week ago