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

select top 3 * from tablename
order by 1 desc

By
Kumar Junior Software Engineer

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is log shipping?

1134


Define magic tables in sql server?

1053


is it important for a database administrator to understand the operating system and file access? : Sql server administration

1029


What is the difference between for auto and for nested?

1001


What is the difference between commit and rollback?

941


How is foreign key related to primary key?

969


What is dbcc updateusage?

1201


Create and insert into temp table in sql server?

1028


Do you know what is openxml in sql server?

1068


How can we determine what objects a user-defined function depends upon?

1005


What is an indexing strategy?

1005


Explain syntax for dropping triggers?

927


What are subqueries in sql server?

1120


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

1020


What is the meaning of resultset type_scroll_insensitive?

952