Friday, February 3, 2012

how to find n'th highest value of a column in mysql

If it's a basic query, then just use LIMIT: get the 4th highest salary
 
SELECT salary FROM tbl_salary ORDER BY salary DESC LIMIT 4,1

No comments:

Post a Comment

Thank you for your Comment....

Popular Posts