Count(*) vs Count(1) vs Count(column)

because 1 is an expression, there is no difference between Count(*) and Count(1). But Count(column) is completely different from Count(*). The reason is Count(column) ignore NULL but Count(*) means Count all rows NULL or NOT NULL.

Tip: All aggregate functions ignore NULL except COUNT(*)

Advertisements