Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a company database schemas as below: EMPLOYEE Fname Mit Lname SnBdat Address Sex Sala Super ssn Dno DEPARTMENT Dname | Dnumber Mar-sesn | Mgr-start,

image text in transcribed

image text in transcribed

Given a company database schemas as below: EMPLOYEE Fname Mit Lname SnBdat Address Sex Sala Super ssn Dno DEPARTMENT Dname | Dnumber Mar-sesn | Mgr-start, date DEPT LOCATIONS Dnumber Dlocation PROJECT Pname Pumber Plocation Dnum WORKS ON Hours Figure 3.7 Referential integrity constraints displayed on the COMPANY relational database schema. DEPENDENT Eser,Dependent-name Sex Bdate Relationship 1. Retrieve the number of employees of department 5 2. Retrieve the average salary, minimum and maximum salary of the male employees. 3. For each project, list the project name along with the names of employees who work on the project. 4. For each department, list its name along with its manager's first name and last name 5. For each department, list its name, manager's first name and last name, and their dependents names if they have any. 6. Retrieve the names of employees who work on the project "ProjectX" 7. Retrieve the first name and last name of the male employee who has the highest salary. 8. Retrieve the first names and last names of the employees who DONT have a dependent 9. Retrieve the names and SSNs of employees who have at least two dependents. 10. For the department that controls the most number of projects, list its name

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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

10. Discuss the complexities of language policies.

Answered: 1 week ago