How to select nth record from a table?

Answer Posted / saravanan p

select * from
(select row_number() over(order by empid) rno,* from tbl)
tbl1
where tbl1.rno=n

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the server name in sql server?

549


Define synonym?

724


How to list all user defined functions in the current database?

508


What are the dmvs? : sql server database administration

590


How can I check if a view exists in a sql server database?

551






What is normalization? Explain its different types?

591


What do you mean by SQL injection attack?

607


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

639


What is dknf in normalization form?

549


What is always encrypted?

512


What is the maximum rows in sql server table?

502


Determine when an index is appropriate?

550


Difference between DELETE and TRUNCATE?

607


Can we join two tables without primary key?

605


Why use sub query in sql server and list out types of sub queries?

531