count ( distinct [name id] for [account] ) should be exactly what you're after, if I understand your description correctly. One thing you want to look out for when using relational is, do not try to aggregate *both* over the aggregate function of a dat...
↧