Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Specify the following queries on the COMPANY relational database schema shown below using the relational operators discussed in the chapter Relational Algebra. Also show the

image text in transcribed

Specify the following queries on the COMPANY relational database schema shown below using the relational operators discussed in the chapter Relational Algebra. Also show the result of each query as it would apply to the database state in the second figure

a) Retrieve the names of all employees in Department 5 who work more than 10 hours per week on the Product X project.

b) List the names of all employees who have a dependent with the same first name as themselves.

c) Find the names of all employees who are directly supervised by Franklin Wong.

d) For each project, list the project name and the total hours per week (by all employees) spent on that project.

e) For each department, retrieve the department name and the average salary of all employees working in that department.

f) Retrieve the name of employees who work on EVERY project.

g) Retrieve the names of all employees who do not work on any project h) Retrieve the average salary of all female employees.

i) Find the names and addresses of all employees who work on at least one project located in Houston, but whose department has no location in Houston.

j) List the last names of all department managers who have no dependents.

DEPARTMENT DEPT_LOCATIONS PROJECT WORKS_ON DEPENDENT Figure 1 - Schema diagram for the COMPANY relational database schema

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

More Books

Students also viewed these Databases questions

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago