How do you retrieve the last N records from a table?

Answer Posted / swastik

 select
 * from
 (
 select  e1.*
 from emp e1
 order by rownum desc
 )
 where rownum <= &n

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does count (*) mean in sql?

1291


How to avoid duplicate records in a query?

749


Enlist the data types that can be used in pl/sql?

747


Is null operator in sql?

792


Why functions are used in sql?

703






What are the basic sql commands?

746


How insert into statements in sql?

789


What program will open a mdb file?

680


What are the different set operators available in sql?

756


What are the limitations of sql express?

702


What is the difference between distinct and unique in sql?

654


What are records give examples?

743


What is primary key sql?

713


Explain how can you save or place your msg in a table?

775


What is t sql used for?

733