i am unable to find the query and i tried bellow query but it's not working
SELECT DISTINCT(Salary) FROM table ORDER BY Salary DESC LIMIT n,1
how to find the nth value.
for eg: i have 7 records and i want 4th highest salary.
EID -- ELOC --ESAL
A001 TNP10 500000
A002 KAP10 700000
A003 TNP20 600000
A004 TNP10 500000
A005 KAP20 800000
A006 KAP10 900000
A007 APP10 700000