where the letter U indicates specialization, not a category.
| t1 | t2 | t3 | t4 | t5 | t6 | t7 | t8 | t9 | t10 | t11 | t12 | t13 | |
| T1 | R(Z) | R(Y) | W(Y) | R(X) | W(X) | ||||||||
| T2 | R(Y) | R(Z) | W(Y) | W(Z) | |||||||||
| T3 | R(X) | W(X) | R(Y) | W(Y) |
select e.name, s.name, p.pname, w.hours, d.dname from EMPLOYEE e, EMPLOYEE s, WORKS_ON w, PROJECT p, DEPARTMENT d where e.dno=5 and w.hours>20 and p.location='Arlington' and e.superssn=s.ssn and e.ssn=w.ssn and w.pno=p.pno and p.dno=d.dnoDraw the final query tree of this query that consists of relational algebra expressions after you apply the heuristic optimization transformations learned in class.
edge(X,Y) represents a graph edge between the nodes
X and Y. Note that edge(X,Y) implies
edge(Y,X) and vice versa but only one of these two is given as a fact.
For example, the facts at the left represent the graph at the right:
edge(1,2)
edge(2,3) 1 - 2 --- 3
edge(1,6) | |
edge(2,4) | 4 7---8
edge(6,4) | / \
edge(4,5) 6-------5
edge(6,5)
edge(7,8)
is_connected(X,Y) that indicates that there is a path that connects
node X to node Y (if X is different from Y)
For example, we should be able to deduce from the
above tree that is_connected(1,4).
is_connected(X,Y). This program should
only use relational operators, assignments, and a while-loop.
...
Print the course name and the section number of every course offered by the CSE department.