Why can\'t we use count(distinct *) in SQL? As in to count all distinct rows?
count(distinct *)
You can indeed.
If you've got an identifier, though, you won't have any entirely distinct rows. But you could do for instance:
SELECT COUNT(DISTINCT SenderID) FROM Messages