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 is the simplest way to create a new database in ms sql server?

1008


What is rolap and its advantage? : sql server analysis services, ssas

1281


List out some of the requirements to set up a sql server failover cluster?

1031


How to enforce security in sql server? : sql server security

1104


Explain the steps needed to create a scheduled job?

930


Explain primary key?

959


How can we migrate from SQL server to SQL Azure?

113


What is exclusive locks?

956


What is meant by referential integrity?

1008


Which autogrowth database setting is good?

1057


How do we Backup SQL Azure Data?

108


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

1037


Do you know sql server 2008 backup compression?

964


What is the difference between Triggers and Stored Procedure?

1095


Where do we use trace frag?

1011