Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL 1. Retrieve the names of all employees whose department manager's SSN is 888665555. 2. Retrieve the name of the employee who has Alice as

SQL

imageimageimage

1. Retrieve the names of all employees whose department manager's SSN is 888665555. 2. Retrieve the name of the employee who has Alice as a dependent. 3. For each department manager, retrieve his/her name along with the names of projects that he/she is working on. 4. Retrieve the manager's first and last name of the each department that locates in 'Houston'. 5. Find the SSNs of department managers who don't have dependents. 6. Retrieve the dependents from the employees of department 5. 7. (Extra credit)List the name of supervisor who has more supervisee than other supervisors. 8. (Extra credit) Retrieve the first and last name of each department manager and the first and last name of his/her immediate supervisor.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant Navathe

7th Edition

0133970779, 978-0133970777

More Books

Students also viewed these Databases questions

Question

Why are duplicate tuples not allowed in a relation?

Answered: 1 week ago