COUNT(*)counts all rowsCOUNT(column)counts non-NULLs onlyCOUNT(1)is the same asCOUNT(*)because 1 is a non-null expressions
Your use of COUNT(*) or COUNT(column) should be based on the desired output only.
COUNT(*) counts all rowsCOUNT(column) counts non-NULLs onlyCOUNT(1) is the same as COUNT(*) because 1 is a non-null expressionsYour use of COUNT(*) or COUNT(column) should be based on the desired output only.