|
|
|
|
Note:
|
Solution:
Formulate the query in a "meta set language":
select fname, lname
from employee A // We test 1 tuple of the cartesian product at a time
// Let's call the current tuple that we test
// the tuple employee "A"
where A's salary = max { salary of employees in employee A's department }
|
|
Solution:
Formulate the query in a "meta set language":
select fname, lname
from employee A
where sex = 'F'
and salary = max { salary of female employees in employee A's department }
|
|
Solution:
select dname
from department D // we test 1 tuple at a time - call this tuple "D" !!!
where { set of female employee of in department D }
= empty set
|
|
Solution:
select fname, lname
from employee A
where { (set of) projects w.o. by employee A
and controlled by Research dept } = empty set
|