Aryan PrajapatKnowledge Contributor
How to find the nth highest value in a column of a table?
How to find the nth highest value in a column of a table?
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.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
Using the OFFSET clause. For example, to find the 6th highest value from a column, we would use the following syntax:
SELECT * FROM table_name
ORDER BY column_name DESC
LIMIT 1
OFFSET 5;