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

this will also work

select count(distinct columnname) from table

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you check the level of fragmentation on a table?

1045


What is the default sql server instance name?

1035


What is the difference between functions and stored procedures?

1163


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

2026


Does view occupy space?

945


How do I view views in sql server?

1006


Why I am getting this error when renaming a database in ms sql server?

1052


What are different types of statement?

1017


What are dml (data manipulation language) statements in ms sql server?

983


How many joins in sql server?

957


Write query to return all rows sql?

1054


mention different types of relationships in the dbms?

1020


Is there any difference between primary key and unique with the not null condition?

950


Where are SQL server users names and passwords are stored in sql server?

1271


What do you understand by the analysis services in sql server?

939