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 scheduled jobs?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?
What is the difference between nvl and nvl2?
What is the use of keyword with encryption. Create a store procedure with encryption?
What is merge join?
How to create a simple table to test triggers in ms sql server?
Tell me what is sql profiler?
What is row_number()?
How to optimize stored procedure optimization?
What is the template in sql?
What is difference between equi join and natural join?
How to create a ddl trigger using "create trigger" statements?
How can you find out how many rows returned in a cursor?
What is row_number () and partition by in sql server?
List the different types of joins?