Question: Write the following queries in SQL on the database schema shown below. 1 . Retrieve the address of all department managers who have no dependents.
Write the following queries in SQL on the database schema shown below.
Retrieve the address of all department managers who have no dependents.
Retrieve the salaries of all employees who work on every project.
Retrieve the supervisorSSN of all employees who do not work on any project.
the Schema
Employee: Fname, Fname, SSN Bdate, Address, SEX, Salary, Superssn, Dnum
Department: Dname, Dnumber, Mgrssn Mgrstartdate
Deptlocations: Dnumber, Dlocation
Workson: ESSN, Pnum, Hours
Project: Pname, Pnumber, Plocation, Dnum
Dependant: ESSN, Dependentname, sex, Relationship
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
