azzazzello
Technical User
I have a fairly siple query, like:
SELECT id, alias, random, count(alias) as num FROM table WHERE ... GROUP by alias;
There are, however, duplicates in the table in regard to id and alias. Specifically, more that one row can have identical id and alias. I want to have such rows only counted ONCE. Is there a simple was to do this, preferably without a JOIN?
SELECT id, alias, random, count(alias) as num FROM table WHERE ... GROUP by alias;
There are, however, duplicates in the table in regard to id and alias. Specifically, more that one row can have identical id and alias. I want to have such rows only counted ONCE. Is there a simple was to do this, preferably without a JOIN?