Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1. (16 points) Exercise 6.16 (a, c, e and i) on pages 281 - 282. Specify the follow- ing queries on the COMPANY relational

image text in transcribed

image text in transcribed

Question 1. (16 points) Exercise 6.16 (a, c, e and i) on pages 281 - 282. Specify the follow- ing queries on the COMPANY relational database schema shown in Figure 5.5 using the relational algebra operators. Aslo show the result of each query as it would apply to the database state of Figure 5.6. a. Retrieve the names (first and last names) of all employees in department 5 who work more than 10 hours per week (i.e., WORKS_ON.HOURS > 10) on the ProductX' project. c. Find the names of all employees who are directly supervised by Franklin Wong'. e. Retrieve the names of all employees who work on every project. i. Find the names and addresses of all employees who work on at least one project located in Houston but whose (employee's) department has no location in Houston. EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT_LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation | Dnum WORKS ON Essn Pno Hours DEPENDENT Figure 5.5 Schema diagram COMPANY relatic database schema | Essn | Dependent_name | Sex | Bdate Relationship

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

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago