Question: b ) Consider the following relation schema and write SQL queries to find: EMPLOYEE ( Fname , Minit, Lname, SSN , Bdate, Address, Sex, Salary

b) Consider the following relation schema and write SQL queries to find:
EMPLOYEE(Fname, Minit, Lname, SSN, Bdate, Address, Sex, Salary SuperSSN, Dn
DEPARTMENT(Dname, Dnumber, MgrSSN, MgrStartDate)
DEPT_LOCATIONS(Dnumber, Dlocaions)
PROJECT(Pname, Pnumber, Plocation,Dnum)
WORKS_ON(ESSN, Pno,Hours)
i. Retrieve the name and address of all employees who work for the 'Researc department.
ii. For each employee, retrieve the employee's name, and the name of his or immediate supervisor.
iii. Retrieve the name of each employee who works on all the projects controlled department number 5.
iv. Make a list of all project numbers for projects that involve an empl.
4
last name is 'Smith' as a worker or as a manager of the department that contrc the project.
v. Retrieve the SSN of all employees who work on project number 1,2, or 3.
 b) Consider the following relation schema and write SQL queries to

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!