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
You might also like to view...
Security of operations ensures that all reviews specified by the statement of work are conducted at their appropriate checkpoints and that all action items that issue out of every review are addressed by ____.
A. review B. report C. auditing D. rework
Each device that is connected to a network is called a(n) ________
A) object B) client C) server D) node
What is the major benefit of using the Active Directory-Based Activation model?
What will be an ideal response?
In DFD terminology, a data store is a process that changes data by performing a calculation, updating information, or sorting a list.
Answer the following statement true (T) or false (F)