Home » questions » how to find nth greatest value using max command in SQL?
how to find nth greatest value using max command in SQL?
can u slove my problem..any SQL user can slove it
hey if i have ten records in my salary coloumn and i want to know the salary of the 5th greatest one.but use the subquery command take lot of time (select from max(sal) from emp where sal<(select from max(sal) from emp) writng this 5 times will take lot of time can any 1 tell me how to find it in a better ways using co-realted query(finding by nth place from which i can find directly 5th maximum value) please help me

Answers
jsd115
On 2006-08-04 09:18:38
Raj Sarma
On 2006-08-04 09:22:42
slowman011
On 2006-08-04 15:24:56