MySQL Forums
Forum List  »  General

Re: I don't understand why I get two different counts
Posted by: Rick James
Date: September 27, 2013 11:49PM

# A B
1 x y
2 x z
3 w z

SELECT COUNT(DISTINCT A) --> 2 (x,w)
SELECT COUNT(DISTINCT A, B) --> 3 (xy,xz,wz)

Options: ReplyQuote


Subject
Written By
Posted
Re: I don't understand why I get two different counts
September 27, 2013 11:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.