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

What is normalization 1nf 2nf 3nf?

1107


what are database files and filegroups? : Sql server database administration

996


Explain few examples of RDBMS?

1097


How do we synchronize On-Premise SQL server with SQL Azure?

124


when you create a database how is it stored? : Sql server database administration

1081


What is Federation Root Database?

104


What are sp_configure commands and set commands?

1072


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

1440


why would you use sql agent? : Sql server database administration

1266


Where are SQL server users names and passwords are stored in sql server?

1324


How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?

1057


what is the system function to get the current user's user id? : Sql server database administration

1068


What is the command used to check locks in microsoft sql server?

1096


Explain the concept of recursive stored procedure.

1021


What are types of storage modes? : sql server analysis services, ssas

1079