Consider the follow content of "Works-On" relation in the company database:
The relation "Emp_Proj" is obtained by:
Emp_Proj ÷ emp4_proj = {SSN1, SSN4} |
The reason is that SSN1 is part of the result is all the tuples (SSN1, P1), (SSN1, P2), (SSN1, P3) are in the original data set
The reason is that SSN2 is part of the result is all the tuples (SSN2, P1), (SSN2, P2), (SSN2, P3) are in the original data set
|
i.e., suppose "John Smith" works on projects {P1, P2, P3}, we must find employees that also work on P1, P2 and P3 (the employee may work on other projects in additions to P1, P2 and P3)
Solution:
Remember how the set division works:
Employees SSN1, SSN4 works on all projects P1, P2 and P3
|
i.e., suppose department #5 controls projects {P1, P2, P3}, we must find employees that also work on P1, P2 and P3 (the employee may work on other projects in additions to P1, P2 and P3)
Strategy:
|
Solution:
For each step, I will show the result using the above database content (as illustrative example)
|