Show the result of each of the sample queries in Section 6.5 as it would apply to the database state in Figure 3.6.

What will be an ideal response?

QUERY 1) Find the name and address of all employees who work for the 'Research' department.
Result: FNAME LNAME ADDRESS
John Smith 731 Fondren, Houston, TX
Franklin Wong 638 Voss, Houston, TX
Ramesh Narayan 975 Fire Oak, Humble, TX
Joyce English 5631 Rice, Houston, TX

(QUERY 2) For every project located in 'Stafford', list the project number, the controlling department number, and the department manager's last name, address, and birth date.
Result:
PNUMBER DNUM LNAME ADDRESS BDATE
10 4 Wallace 291 Berry, Bellaire, TX 20-JUN-31
30 4 Wallace 291 Berry, Bellaire, TX 20-JUN-31

(QUERY 3) Find the names of all employees who work on all the projects controlled by department number 5.
Result: (empty because no tuples satisfy the result).
LNAME FNAME

(QUERY 4) Make a list of project numbers for projects that involve an employee whose last name is 'Smith' as a worker or as a manager of the department that controls the project.
Result: PNO
1
2

(QUERY 5) List the names of all employees with two or more dependents.
Result: LNAME FNAME
Smith John
Wong Franklin

(QUERY 6) List the names of employees who have no dependents.
Result: LNAME FNAME
Zelaya Alicia
Narayan Ramesh
English Joyce
Jabbar Ahmad
Borg James
(QUERY 7) List the names of managers who have at least one dependent.
Result: LNAME FNAME
Wallace Jennifer
Wong Franklin

Computer Science & Information Technology

You might also like to view...

What is a path?

A) A trusted location of all Access files B) A table used to access other files on a computer's hard drive or storage device C) A field property that directs the user to a file on your computer or a temporary storage device D) The location of a folder or file on your computer or storage device

Computer Science & Information Technology

Construct an argument as to why indirect communication may be appropriate in volatile environments. To what extent can this be traced to time uncoupling, space uncoupling or indeed a combination of both?

What will be an ideal response?

Computer Science & Information Technology