Question: Write the following queries in SQL, using the university schema. a. Find the ID and name of each student who has taken at least one
Write the following queries in SQL, using the university schema.
a. Find the ID and name of each student who has taken at least one Comp. Sci. course; make sure there are no duplicate names in the result.
b. Find the ID and name of each student who has not taken any course offered before 2017.
c. For each department, find the maximum salary of instructors in that department. You may assume that every department has at least one instructor.
d. Find the lowest, across all departments, of the per-department maximum salary computed by the preceding query.
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
a SELECT DISTINCT sid sname FROM Student s JOIN Enrolled e ON sid estudent JOIN Course c ON ec... View full answer
Get step-by-step solutions from verified subject matter experts
