COUNT(star) vs. COUNT(ColumnReference)
The difference is COUNT(*) includes NULL values while COUNT(column_reference) doesn’t. As an example consider the two below queries for Northwind database that find the number of orders placed by each Northwind customer: WRONG: RIGHT: