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 does <> symbol mean?

950


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

1050


What is constraints and its types?

924


How to return the date part only from a sql server datetime datatype?

1083


How to transfer a table from one schema to another?

983


How do you use a subquery to find records that exist in one table and do not exist in another?

1027


What is the process of normalization?

1104


How to create user defined functions with parameters?

1207


Explain indexes disadvantages?

1066


Explain what is the main purpose of having conversation group?

918


can SSRS reports Cache results?

147


How to filter out duplications in the returning rows in ms sql server?

1116


What is the difference between Clustered and Non-Clustered Index?

1044


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1036


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

911