in Databases
554 views
2 votes
2 votes

Here query is not correct if there are two persons with higher rating?Am I correct?

in Databases
554 views

4 Comments

query in the last table returned null because age of all people were < 21.
0
0
@manu sir

In the question, it is given "names of sailors". Shouldn't that allow the sailors to be more than 1 (equality allowed?)
0
0

Query one is correct. 

1
1

1 Answer

0 votes
0 votes
what will be the output?

                sailors

sid    sage srating

a5     20     5

a2     19     4

a1     18     3

 

I think answer should be null even a5 has rating higher than all sailors with age<21 according to querry 1. INCORRECT QUERRY 1???

Related questions

0 votes
0 votes
1 answer
1
Niharika 1 asked in Databases Oct 29, 2017
225 views
Niharika 1 asked in Databases Oct 29, 2017
225 views