Presentation is loading. Please wait.

Presentation is loading. Please wait.

e. Retrieve the names of all employees who work on every project.

Similar presentations


Presentation on theme: "e. Retrieve the names of all employees who work on every project."— Presentation transcript:

1 e. Retrieve the names of all employees who work on every project.
Due: April 06, 2009 (48) Specify the following queries in SQL (see Fig. 7.5 on my home page). a. Retrieve the name 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. Retrieve the names of all employees who work on every project. f. Retrieve the names of all employees who do not work on any project. 2. (16) What update anomalies occur in the EMP_PROJ and EMP_DEPT relations of Figures 14.3 and 14.4 (on my home page). Jan. 2009 Yangjun Chen ACS-3902

2 3. (18) In what normal form is the LOTS relation schema in Figure 14
3. (18) In what normal form is the LOTS relation schema in Figure 14.11(a) with respect t the restrictive interpretations of normal form that take only the primary key into account? Would it be in the same normal form if the general definitions of normal form were used? (By the general definitions of normal forms, not only the primary key, but also all the key should be considered. See in 3rd ed., in 4th and 5th ed. ) 4. (18) Consider a relation R(A, B, C, D, E) with the following dependencies: AB C, CD  E, DE  B. Is AB a candidate key of this relation? If not, is ABD? Explain your answer. Jan. 2009 Yangjun Chen ACS-3902


Download ppt "e. Retrieve the names of all employees who work on every project."

Similar presentations


Ads by Google