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
How to disable triggers using "disable trigger"?
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
What are the 7 disadvantages to a manual system?
Explain different types of locks in sql server.
What is the cartesian product of table?
How do I partition a table in sql server?
Write a SQL queries on Self Join and Inner Join.
what type of index will get created after executing the above statement? : Sql server database administration
Can foreign key be duplicate?
What is clustered index
How can we migrate from SQL server to SQL Azure?
can a database be shrunk with users active? : Sql server administration
Explain full-text indexing?
What is set nocount on and what is set nocount off?
How do I run sql server 2014?