Here's the initial query:
SELECT COUNT(column) FROM table GROUP BY column;
This gives me something like the following:
COUNT(column)
2
4
1
1
3
etc.
BUT I need to to count all of those together in one number! How could I do that? COUNT(COUNT(column)) throws an error: "Invalid use of group function".
P.S. this is not used in any program, if it was, it would be trivial to count them together.
Add a comment
|