Reputation: 195
My column values
CustomerID
-----------
44468111
44468112
44468113
44468112
44468112
I need Count of total Customer ID's Not Disctinct.
Excpected Output:
Count(CustomerID's)
-------------------
3
Can you please help me out to get this. I am a newbie. Thanks in Advance..!!! :)
Upvotes: 0
Views: 59
Reputation: 1269693
Well, if you want 3
, then you do want distinct
:
select count(distinct CustomerID)
Upvotes: 1