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
Can we use max in where clause?
How will you add a dimension to cube? : sql server analysis services, ssas
Do you know what are various aggregate functions that are available?
Do you know how to implement service broker?
What are the components of dbms?
Explain triggers?
What is the filtered index?
Explain the properties of the relational tables?
What is server-level principal?
What is an identity?
Why use “in” clause in sql server?
What is shrink log file?
User wants only to display only pdf as export option in report manager. How to achieve this?
what is the difference between openrowset and openquery?
What is normalization 1nf 2nf 3nf?