no, COUNT(*) counts the number of rows
in each group
in the above query, the Ns are one group, while the Ks are another group
(there is a third group, for plan codes that are neither K nor N, but let's not confuse you any further at the moment)
see the GROUP BY clause? that determines the groups
when you see a query like this --
Code:
SELECT COUNT(*) AS rows
FROM daTable
there is no GROUP BY clause, and in that case, all the rows form a single group -- so again, COUNT(*) counts the number of rows in each group, but since there's only one group, it effectively gives you the count for the whole table
make sense?
