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.
1. Retrieve the address of all department managers who have no dependents.
2. Retrieve the salaries of all employees who work on every project.
3. Retrieve the supervisor_SSN 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
Dept_locations: Dnumber, Dlocation
Works_on: ESSN, Pnum, Hours
Project: Pname, Pnumber, Plocation, Dnum
Dependant: ESSN, Dependent_name, sex, Relationship

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!