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

select count(distinct(columnname)) from tablename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is sql server written in?

1012


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

985


What are data files?

1024


Tell me about joins in database system and explain each in detail.

1031


Can you explain what is sql server english query?

980


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1987


Can we call stored procedure in view in sql server?

889


What is triggers and its types?

995


What is the use of custom fields in report?

983


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

1041


What is subreport?

141


Explain the dbcc pintable command when would you use it?

893


Does sql server 2000 full-text search support clustering?

847


Explain data warehousing in sql server?

1025


Can a table have 2 foreign keys?

888