Google News
logo
PL/SQL - Interview Questions
What is the difference between COUNT (*), COUNT (expression), COUNT (distinct expression)? (Where expression is any column name of Table)?
COUNT (*) : Returns a number of rows in a table including duplicates rows and rows containing null values in any of the columns.

COUNT (EXP) : Returns the number of non-null values in the column identified by expression.

COUNT (DISTINCT EXP) : Returns the number of unique, non-null values in the column identified by expression.
Advertisement