edited by
967 views

2 Answers

Best answer
1 votes
1 votes
In Exists subquery count(*) always results to be true so that all the tuples of table T is displayed
selected by
0 votes
0 votes
Here in the inner query we have EXISTS clause

Exists return true when it get value or the inner query return at least 1 record

Here Select count (*) From T where B =2 return a row 2 10  (COUNT =1 )

HENCE NO OF ROWS RETURNED = 1

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
0 answers
2
abhinowKatore asked Jan 17, 2023
283 views
0 votes
0 votes
1 answer
4
iita asked Dec 26, 2016
644 views
i got a doubt in understanding the sql concepts that "What does 'not exist' do in a sql query and does it work can anyone plz expain me with an example..??? plz