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


Please Help Members By Posting Answers For Below Questions

Tell me in brief how sql server enhances scalability of the database system?

540


What is cursors?

646


can a database be shrunk with users active? : Sql server administration

573


How do I find the port number for sql server?

508


How to manipulate data from one table to another table ?

550






What is Replication?

644


What are the different acid properties?

631


What is a print index?

503


What is dimension table? : sql server analysis services, ssas

562


How to generate create table script on an existing table in ms sql server?

651


What is difference between view and materialized view?

542


Explain what is lock escalation?

583


What is the default order of an order by clause?

584


What are the authentication modes in sql server? How can it be changed?

607


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1694