How to select nth record from a table?
Answer Posted / rathika
Answer #7 should be
select top 1 * from (select top n * from tbl order by col1
asc) tbl order by col1 desc
where n = nth number in the list
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
Define a cross join?
How to list all triggers in the database with sys.triggers in ms sql server?
What are out-of-range errors with date and time literals?
how you can list all the tables in a database?
How do you delete a data source?
What are temporal tables in sql server 2016?
How to drop an existing table with "drop table" statements in ms sql server?
What is sql server query analyzer?
Explain about unique identifier data type in sql server?
What are the operating modes in which database mirroring runs?
How to create a Master database in SQL server ?
How to make remote connection in database?
What is standby servers? Explain types of standby servers.
Can we deploy SSRS reports on our personal website?
What happens to a trigger with multiple affected rows?