At one of my interviews I was asked how to select the maximum value from the database without the keyword MAXand TOP.
My answer was:
select Table.Value
from Table
where Table.Value >= all( select Table.Value from Table)
But that was wrong. The interviewer said that I have to do this with only one choice.
Any ideas?
Thank;)
source
share