On one of my interviews I was asked how it’s possible to select
maximal value from DB without keyword MAX and TOP.
My answer was:
select Table.Value
from Table
where Table.Value >= all( select Table.Value from Table)
But this wasn’t the right one. The interviewer said that
I should do it only with one select.
Any ideas ?
Thank you 😉
How about;
Less efficient & uglierWoops missed the single select restriction