COP 4540-U01 Homework 4 - Database Queries - Prof. Shu-Ching Chen, Assignments of Database Management Systems (DBMS)

A university homework assignment from a database systems course, focusing on specifying queries using tuple relational calculus and domain relational calculus. The assignment includes exercises with examples and a figure of a database schema. Students are required to retrieve employee information based on certain conditions, such as department, hours worked, and project involvement.

Typology: Assignments

Pre 2010

Uploaded on 09/17/2009

koofers-user-0nw-2
koofers-user-0nw-2 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COP 4540-U01 Homework 4
Spring 2009
Due date: March 23, 2009 (Monday) in class
Problems:
1. [Exercise 6.24] Specify queries (a), (b), (c), (d), and (e) of Exercise 6.16 in both the
tuple relational calculus and the domain relational calculus.
(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.
pf2

Partial preview of the text

Download COP 4540-U01 Homework 4 - Database Queries - Prof. Shu-Ching Chen and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

COP 4540-U01 Homework 4

Spring 2009

Due date: March 23, 2009 (Monday) in class

Problems:

1. [Exercise 6.24] Specify queries (a), (b), (c), (d), and (e) of Exercise 6.16 in both the tuple relational calculus and the domain relational calculus.

(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.

FIGURE 5.6 One possible database state for the COMPANY relational database schema.