Professional Documents
Culture Documents
So as most of us know, query is written like this for finding nth highest salary. In below query we see
how to find max salary in sql without using max function.
SELECT *
WHERE ( n ) = (
Here, replace the 'n' with any number. For example, if you have to find 6th highest salary , then replace
n with 6.
SELECT *
WHERE (6) = (