How to select nth record from a table?
Answer Posted / roxy
select top 1 * from (select top n * from tbl order by col1
desc) tbl order by col1 asc
where n = nth number in the list
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Difference between connected and disconnected database in .net with sql server?
What will be the maximum number of indexes per table?
What is efficiency data?
How do you manipulate data?
what are the new features in SSRS?
why would you call update statistics? : Sql server database administration
What is use of @@ spid in sql server?
What is partition, how will you implement it? : sql server analysis services, ssas
Tell me what is difference between clustered and non clustered index?
What is lock escalation? : sql server database administration
Does partitioning improve performance sql server?
Where sql server usernames and passwords are stored in a sql server?
What is single-user mode and what are the steps you should follow to start sql server in single-user mode?
Explain “row_number()” in sql server with an example?
How to remove duplicate rows from table except one?