Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / sunil bisht

Last 10 record from emp table

select * from emp where rowid<=(select max(rowid) from emp)
minus select * from emp where rowid in(select rowid from
emp where rownum<=3);

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is pl sql and postgresql same?

1136


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

975


What is t sql used for?

1015


How do I view a sql trace file?

1031


How can we debug in PL/SQL?

1136


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1108


Explain constraints in sql?

1049


What are the two types of periodical indexes?

940


What are records give examples?

1010


How to place comments in pl/sql?

1159


What is a loop in sql?

986


how to create a new view in mysql? : Sql dba

938


What is the order of sql select?

1041


What are the disadvantages of not performing database normalization?

1166


Can there be more than one function with a similar name in a pl/sql block?

985