Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Retrieve the names of employees who have no dependents 2 . List the names of managers who have at least one dependent. 3

1. Retrieve the names of employees who have no dependents
2. List the names of managers who have at least one dependent.
3. Retrieve the Social Security numbers of all employees who work on project numbers 1,2,
or 3
4. Find the sum of the salaries of all employees, the maximum salary, the minimum salary,
and the average salary.
5. Find the sum of the salaries of all employees of the Research department, as well as the
maximum salary, the minimum salary, and the average salary in this department
6. Retrieve the total number of employees in the company and the number of employees in
the Research department
7. Count the number of distinct salary values in the database.
8. For each department, retrieve the department number, the number of employees in the
department, and their average salary.
9. For each project, retrieve the project number, the project name, and the number of
employees who work on that project.
10. For each project on which more than two employees work, retrieve the project number, the
project name, and the number of employees who work on the project.
11. For each project, retrieve the project number, the project name, and the number of
employees from department 5 who work on the project.
image text in transcribed

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

How can the object-oriented approach be used during systems design?

Answered: 1 week ago