MySQL Forums
Forum List  »  Newbie

Re: Case When help
Posted by: Tim O'Neill
Date: July 25, 2021 01:31AM

Hi Peter

Thanks for your reply.

I've just checked again though and the code returns the correct results.

At the minute I have THEN 1 ELSE 0 with sums at the top. My question is where would I need to put in the DISTINCT COUNT code ie what should it replace? Also where would I put the field that I'm doing the DISTINCT COUNT on?

Thanks for the link. Which sub page do I need though please?

Tim

Options: ReplyQuote


Subject
Written By
Posted
July 24, 2021 03:49PM
July 24, 2021 06:29PM
Re: Case When help
July 25, 2021 01:31AM
July 25, 2021 11:56AM


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.