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

explain the delete statements in sql

1026


What is the purpose of the primary key?

1048


Which is better trigger or stored procedure?

934


Why truncate is faster than delete?

1088


What are secondary keys?

955


What are the set operators in sql?

1053


How is debugging done?

958


What is AUTH_ID and AUTH_USER in pl/sql ?

2169


what is an alias command? : Sql dba

1073


Explain the purpose of %type and %rowtype data types with the example?

973


How do you drop a trigger?

967


How to sort the rows in sql.

1049


Can we call a function containing dml statements in a select query?

960


What are the types of sql commands?

1073


What are the different ddl commands in sql?

1131