Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Select the first names, last names, course reference numbers, and enrollments of all adjunct faculty members who are teaching courses during the term that have
- Select the first names, last names, course reference numbers, and enrollments of all adjunct faculty members who are teaching courses during the term that have an enrollment higher than the average enrollment. Use a subquery to obtain the average enrollment per class.
- Select the full-time faculty member first name, last name, reference number and enrollment for courses that have an enrollment less that of all courses in the 50th -100th percentile (less than the top 50% percent). Use a subquery to determine the top 50% of enrollments.
- Select all full-time faculty members who are teaching more than 2 courses. Use a subquery to obtain from the Courses table all full time faculty members who are teaching a total of more than two courses.
- Select the first name, last name, course reference number and enrollment for the course with the highest enrollment for each full time faculty member. Use a subquery to obtain the maximum enrollment for each full time faculty member.
- Write a query that will select the highest enrollment for each faculty member (including adjuncts) among courses taught during the term, and return the sum of the highest enrollments. Use a subquery to obtain the maximum enrollment for each full time faculty member.
- Repeat #5, using a CTE that consists of a derived table to select the highest enrollment of all classes for each faculty member. Use a SELECT statement that references the derived table to obtain a total of the highest enrollments.
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