Yesterday i had a question in an interview which i thought i could find answers here in SO…
How to find 3rd max value of a column using MAX function in sql server?
Consider the column to be
Wages
20000
15000
10000
45000
50000
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Very UGLY but only using MAX
Personally I would have gone with
And then asked the interviewer why they would ever want a solution using MAX, when they can use built in functionality.