Consider the Following Collection of relational schema
- Professor( profname , deptname)
- Department (deptname, building)
- Committee(commname, Profname)
Which of following query finds all the professors who have not offices in any of those buildings that professor Piper has offices in
A.
Select distinct P.profname
from professor P
Where not exists ((
Select building
from department d
where P.deptname= D.deptname )
Union (
Select building
from department D1, professor P1
Where P1.profname=’Piper’ and P1.deptname= D1.deptname ))
B.
Select distinct P.profname Prom professor P
Where not exists
(( Select building from department d where P.deptname= D.deptname )
Intersect
(Select building from department D 1., professor P1
Where P1.profname=’Piper’ and P1.deptname= D1.deptname))
C)
Select distinct P.profname
From professor P
Where not exists(
Select Building from Department d1, professor p1
Where P1.Profname=’Piper’ and p1.deptname=D1.deptname )
D) None of these