SQL - Aggregate Functions
What is the main difference between
COUNT(*) and COUNT(column_name) in SQL?COUNT(*) and COUNT(column_name) in SQL?COUNT(*)COUNT(*) counts every row in the table, including those with NULL values in any column.COUNT(column_name)COUNT(column_name) counts only rows where the specified column is NOT NULL, ignoring rows where that column is NULL.COUNT(*) counts all rows; COUNT(column_name) counts only non-NULL values in that column. -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions