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...

How to get the count of distinct records. Please give me the
query?

Answer Posted / madhavi.bandreddi

select count(*) from (select distinct * from tablename)as
dummytable

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is merge join?

1240


Explain the categories of stored procedure?

982


sql database suspect We have a sql database that is showing as suspect. How can we recover?

2004


What is "scheduled jobs" or "scheduled tasks"?

1030


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

1112


can an order by clause be used in a creation of a view?

1241


Can we write ddl in trigger?

972


What is a filestream?

1049


What is multi-statement table-value user-defined function?

1056


Do I need a report server to run reports in my application?

170


Explain transaction server isolation?

1085


What are “lost updates”?

1045


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

1001


What are the steps to process a single select statement?

991


How do I trace a query in sql server?

1001