retagged by
417 views

2 Answers

0 votes
0 votes

This is an example of Double Nested NOT EXISTS query. That is, it has a NOT EXISTS clause within a 

NOT EXISTS clause. Formally, it answers the question “does an employee exist with projectname Database and a project that is not in Works”? But it is easier to say that a nested NOT EXISTS answers the question 

“is x TRUE for all y?”

In our case, that is equivalent to "Find the employees whos age is more than 30 and works for every project  with project name database"

0 votes
0 votes
R1 = All project pid's which are under at least 1 employee.
R2 = (all  pid's whose pname is database which are not under any employee ) =[ (project name = database) and not exist R1].
R3= (employee which is working on every project whoose project name is database) and whose age>30 and not in R2.

WHY EVERY : becuase we had eliminated all project whoose name is database and not under any employee.

Related questions

1 votes
1 votes
0 answers
1
dm4006 asked Jun 30, 2018
378 views
Which iit conduct spot round
1 votes
1 votes
1 answer
3
Chandrabhan Vishwa 1 asked Jan 15, 2018
883 views
a coin tossed nine time .what is the probability that only first two tosses will yield tails?