Question: Question 1: Relation Algebra Specify the following queries on the COMPANY relational database schema (a) Retrieve the names of employees in department 5 who work

Question 1: Relation Algebra

Specify the following queries on the COMPANY relational database schema

Question 1: Relation Algebra Specify the following queries on the COMPANY relational

(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the 'ProductX' project.

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

(c) For each project, find the total spent hours by all employees

(d) For each project, list the names of projects that have a total spent hours (spent by all employees) less than the average spent hours of all projects.

(e) Retrieve the names of employees who work on every project controlled by Research department.

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

(g) List the last names of department managers who have no dependents.

EMPLOYEE Fname Minit Lname Bdate Address Sex Salary Super s5n Dno DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!