What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 19446 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > What is meaning of COUNT(DISTINCT column ...

What is meaning of COUNT(DISTINCT column_name) ?

Interview question and answer by: Akiii | Posted on: 5/31/2012 | Category: SQL Server Interview questions | Views: 1384 | | Points: 40


Answer:

COUNT(DISTINCT column_name) - returns the number of distinct values of the specified column


For example :-

select COUNT(distinct store_name) from tbl_MEOC_information;


It will fetch distinct rows from the store_name column.


Thanks and Regards
Akiii

Found interesting? Add this to:


 Responses

Posted by: Ras90it | Posted on: 01 Jun 2012 08:27:26 AM | Points: 10 | Alert Moderator 

distinct mean???

can u able to say clearly ???


Posted by: Akiii | Posted on: 01 Jun 2012 08:29:37 AM | Points: 10 | Alert Moderator 

Hi @Ras90it....

distinct means it will fetch or Count unique values among duplicates !

Thanks and Regards
Akiii

Posted by: Ras90it | Posted on: 01 Jun 2012 08:36:17 AM | Points: 10 | Alert Moderator 

Thank you very much

Posted by: Akiii | Posted on: 01 Jun 2012 08:37:32 AM | Points: 10 | Alert Moderator 

Its okay @Ras90it...



Thanks and Regards
Akiii

Posted by: Ras90it | Posted on: 01 Jun 2012 08:45:04 AM | Points: 10 | Alert Moderator 

I know OOPS concepts only. i want to learn DOTNET 4.0 with Full concepts like LINQ,AJAX, WPF, WCF etc... & SQL SERVER 2008 or 2012. please tel some idea. I need guidance.

Posted by: Akiii | Posted on: 01 Jun 2012 08:49:23 AM | Points: 10 | Alert Moderator 

Your question should be posted in a different category. But anyway, Have a good grip on OOPs because it is the base !

Try learning simple concepts first like ado.net...etc then go for linq, wcf, wpf...etc
these are advance concepts it will take time to have a grip on them.

Here you will find many articles, questions, blogs etc regarding concepts. Start reading them remember "There is no shortcut to anything. You learn by doing " !


Thanks and Regards
Akiii

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Akiii

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 3:05:47 AM