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
Does union all remove duplicates?
What are the differences between lost updates and uncommitted dependencies?
How to create a user name in a database?
Can a database be shrunk to 0 bytes, if not, why?
If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio
Why we use functions in sql server?
What is the meaning of sql server?
Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?
What is dknf in normalization form?
How to query multiple tables jointly?
What is the simplest way to create a new database in ms sql server?
How can I create a report based on a query? : sql server management studio
What are the properties of primary key?
Can an automatic recovery be initiated by a user?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas