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...

wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records

Answer Posted / tulasi ravi kumar

hi this is tulasi ravi
id - ravi106109@gmail.com

select * from emp where rowid in
(select rowid from emp
minus
select rowid from emp where rownum<=(
select count(*)-3 from emp))


feel free to mail queries,,,.....

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between SQL notification and SQL invalidation?

1262


What is sql server database?

1078


What are recommended options to be used while using db mirroring? : sql server database administration

1221


How to insert multiple rows with a subquery?

1185


How to create new table with "create table" statements?

1192


What do you understand by integration services in sql server?

998


Can you explain the disadvantages/limitation of the cursor?

1051


What are the purpose of Normalisation?

1093


Determine when to use stored procedure to complete sql server tasks?

1107


How does stuff differ from the replace function?

1064


What is the xml datatype?

1122


What is use of except clause? How does it differ from not in clause?

1064


How many triggers are possible per table?

1138


How can you stop stored procedures from recompiling?

946


What does nvl stand for?

992