295 views
0 votes
0 votes

query

what would be the output for this query?

inner query returns NULL, right? as S.E > 10 won’t be satisfied. so for every outer tuple of R it shouldn’t produce any result? and so the output should be 0? atleast that’s what i think.

 

but, it says the output is 3(i am assuming number of tuples of R), and i can’t figure out why.

any help would be appreciated! thanks!

1 Answer

1 votes
1 votes
This question has correlated query.

To solve this question, you need to understand that because S.E>10 is always false, it will return 0. Note- It will return 0 to exist, not empty set. Exist only return false only when empty set is passed to it. So exist condition will be always true and that's because answer will be 3.

Related questions

1 votes
1 votes
0 answers
2
Raviwarlord asked Jan 4, 2023
447 views
can anyone verify if options are correct i am not satisfied with the solution given.
1 votes
1 votes
1 answer
3
Raviwarlord asked Jan 4, 2023
306 views
Could anyone give an example why 2nd and 3rd were false.
1 votes
1 votes
1 answer
4
Sagar475 asked Jan 18, 2022
627 views
Options were:8235522331Please give detailed solution.