How to select nth record from a table?

Answer Posted / soorai ganesh

SELECT * FROM
(
SELECT ROW_NUMBER() OVER(ORDER BY column_name) AS Rno,*
FROM Table_Name
)T
WHERE T.Rno = 7 -- If N is 7 other wise put ur nth value.

Is This Answer Correct ?    45 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain boyce and codd normal form(bcnf)?

539


What command must you use to include the not null constraint after a table has already been created?

549


What is TDS(Tabular Data Stream) Gateway?

99


What is relationship? What number of sorts of relationship are there?

644


How do I view a stored procedure in sql server query?

542






What are the advantages of partitioning?

651


which table keeps the locking information? : Sql server administration

527


Explain throw statement in sql server 2008?

583


what are the core components of SSRS?

92


How to connect sql server management studio express to sql server 2005 express?

586


What is snapshot report?

129


Explain the usage of floor function in sql server.

511


Explain how to send email from sql database?

571


What is mapping schema?

588


When would you use sql joins?

528