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
What is difference between oltp and olap?
How to rename an existing column with the "sp_rename" stored procedure in ms sql server?
Explain about unique identifier data type in sql server?
What is difference between foreign key and unique key?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
What is oltp (online transaction processing)?
What is difference between createstatement and preparedstatement?
How to list all user names in a database?
what is the maximum size of a row? : Sql server database administration
What do you understand by a stored procedure?
What is report subscription?
Define master database?
List some of the rules that apply to creating and using a ‘view’
What is the difference between getdate and sysdatetime?
What is transact-sql ddl trigger?