COUNT(DISTINCT column) in C9QL
Hello!
How can I do a COUNT of unique values of a column?
In SQL it would be something like:
SELECT Message Type, SUM(Sent), COUNT(DISTINCT Campaign_name)
GROUP BY Message Type
I couldn't make it work in C9QL though :(
-
Official comment
Hi Gonzalo,
Try Count(distinct(<Field>)).
Comment actions -
Thanks a lot, Brig!
Not proud of myself with that one 😇
Please sign in to leave a comment.
2 comments