Posts Tagged ‘count’

Different ways to count

In Oracle, there are at least three different ways to count the number of records a SQL query returns:

COUNT(*) vs COUNT(1)

Which one to use? COUNT(*) or COUNT(1)? Tom Kyte’s answer.