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 / arun kumar k s

drop table #temp select identity(int,1,1) as SlNo, * into
#temp from TABLE_NAME select top 3 * from #temp order by
SlNo desc

arun_4454@yahoo.co.in

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a user-defined function in the sql server and what is its advantage?

1103


Explain the Ways to improve the performance of a sql azure database?

84


Why do you need a sql server?

1106


What is awe?

1011


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

979


What are parameterized reports?

200


How do you create a data source?

908


Write a query to find 5th highest amount paid from the customer table.

934


Explain indexed views?

975


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

1077


What is database white box testing?

1122


How do clustered indexes store data?

1102


Explain a join?

1067


what are acid properties? : Sql server database administration

997


Why are you getting errors when creating a new odbc dsn?

1221