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
What are a database and a data warehouse?
What do you understand by the analysis services in sql server?
Explain the concepts and capabilities of sql server?
Can we delete data from a view?
How would you add a section to a table?
Explain how to integrate the ssrs reports in application?
What part does database design plays a role in performance of an sql server-based application?
Do you know what is bit data type and whats the information that can be stored inside a bit column?
How to skip remaining statements in a loop block using continue statements?
How do I port a number to sql server?
What is difference between clustered index and non clustered index?
How to modify an existing user defined function?
What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks
What are rest-style architecture's?
explain declarative management framework (dmf) in sql server 2008?