

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Due date: February 18, 2009 (Wednesday) in class
Problems:
1. [Exercise 6.16] Specify the following queries on the database schema shown in Figure 5.5 using the relational operators (relational algebra) discussed in this chapter. Also show the result of each query if applied to the database of Figure 5.6.
(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) Find the names of employees that 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) Retrieve the names of employees who work on every project.
2. [Exercise 6.22] Please see textbook.
FIGURE 5.6 One possible database state for the COMPANY relational database schema.