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 / amit kaishver

Select * from ( select rownum k,g.* from nbfc_bank_m g) h,
(select max(rownum) a,max(rownum)-1 b,max(rownum)-2 c
from nbfc_bank_m ) p
where h.k in (p.a,p.b,p.c)

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

860


Explain sql delete command?

1005


How to find table changes in sql server?

1053


What are scalar functions in sql?

1080


Write SQL queries on Self Join and Inner Join.

1072


What are page splits? : SQL Server Architecture

938


How to rebuild the master database?

1014


What is the exact numeric data type in sql?

962


How data can be copied from one table to another table?

902


How to scale out a federation by Sql statement?

116


Do you know what are acid properties of transaction?

909


How to modify an existing user defined function?

1037


What do you mean by an execution plan?

1055


what are the disadvantages of cursors? : Sql server database administration

974


What do you mean by sql server 2005 express management tools?

1254