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 / priya

select top 3 from <table name > where < specify any
condition> order by <column ID> desc

Is This Answer Correct ?    15 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create a data source?

959


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

1061


When cursors are useful?

1168


Why olap is used?

1031


How do I create a trace in sql server?

1089


how can u get last observation in an unknown dataset ?

2483


Explain the properties of a relational table?

1073


How to get the definition of a user defined function back?

1084


Explain four layers of abstraction microsoft architectured?

147


How to get a list of columns in a view using "sys.columns" in ms sql server?

1039


What are cursors stored procedures and triggers?

1079


Tell me what are the advantages of using stored procedures?

1062


How does clustered and non clustered index work?

976


What are the disadvantages of using the stored procedures?

1183


What is updatable resultset?

1070