Answered step by step
Verified Expert Solution
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,
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started