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 / vijaykumar dolli

Select * From Sample Where
Srno In (Select Top 3 srno From Sample Order By 1 Desc)

-- Sample is a Table Name and Srno is Unique Key column
-- This is the perfect Answer ...!

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by replication in sql server? Mention the different types of replication in sql server.

990


Can you pass expressions to stored procedure parameters?

1081


Why use identity in sql server?

1167


how you can deploy an ssrs report?

185


Explain how to maintain a fill factor in existing indexes?

1035


Explain what you mean by 3 tier architecture.

1124


What are subquery and its properties?

1097


How you can add messages to the nt event log from within a stored procedure?

1134


How are the unique and primary key constraints different?

1123


What is it’s similarity with sql server?

160


What is user-defined function?

1033


How to connect Azure federated root database and apply federation in entity framework?

109


List the types of recovery model available in sql server?

969


Why is the need for data conversion transformations?

1108


What is create statement?

1007