How to select nth record from a table?
Answer Posted / karthik
select * from (select rownum r , emp.* from emp)
where
r='&n'
Give the value of n. It will return the nth record.
| Is This Answer Correct ? | 13 Yes | 8 No |
Post New Answer View All Answers
How is foreign key related to primary key?
How to create new tables with "create table" statements in ms sql server?
hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.
how to determine the service pack currently installed on sql server? : Sql server database administration
What is tablix?
What is key attribute?
Explain concepts of analysis services?
Can a table have 2 primary keys?
How to store and query spatial data?
What is cursors?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
How can we improve performance by using SQL Server profiler?
Is BCNF better than 2NF & 3NF? Why?
What is the recovery model?
What is difference statement and preparedstatement?