How to select nth record from a table?

Answer Posted / pallavi attarde

Here N is for Nth record.

SELECT TOP 1 * FROM
(SELECT TOP N * FROM
(SELECT Table.Coloumn1,Table.Coloumn2 from Table)
as d order by d.Coloumn1 desc) as p order by Coloumn1

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a linked server in sql server?

571


What is 2nf normalization form?

610


how many clustered indexes can be created on a table? : Sql server database administration

561


What are the types of database recovery models?

597


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1485






How to invoke a trigger on demand?

536


How to delete existing rows in a table?

582


Explain what is dbcc?

593


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

530


How to loop through returning rows?

574


What is user defined datatypes and when you should go for them?

577


What is sql server agent and what are the two modes of authentication in sql server?

540


How to connect to a sql server using odbc_connect()?

616


How to create a simple user defined function in ms sql server?

541


Please illustrate physical database architecture? : SQL Server Architecture

526