I think you're right. Thanks so much - you just saved me a ton of
trouble.

-- Brian


On Sep 21, 12:13 pm, Jason Meckley <[email protected]> wrote:
> since you're grouping on product you don't need to include it in the count
> statement. this just leaves distinct customers.
> select productid, count(distinct customerid) as total from ownership group
> by productid

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to