Question: Write down the following queries in SQL: ( i ) Display a list of all instructors, showing each instructor s ID and the number of
Write down the following queries in SQL:
i Display a list of all instructors, showing each instructors ID and the number of
sections taught. Make sure to show the number of sections as for instructors who
have not taught any section. Your query should use an outer join, and should not use
subqueries.
ii Display the list of all departments, with the total number of instructors in each
department, without using subqueries. Make sure to show departments that have no
instructors, and list those departments with an instructor count of zero.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
