Tuesday, 31 May 2011

Coding to get nth record in sql server

for 10 th record

select top 1 * from (select top 10 * from dEmployeenew order by 1 desc)ac

choose 10 with nth

No comments:

Post a Comment