Which of the following group function will NOT ignore NULL values?
Which of the following group function will NOT ignore NULL values?
Solution
✅ Correct Option: 4
MAX, SUM and COUNT(column_name) all skip NULL values and work only on the non-NULL values in the column. So no listed function takes NULL into account.
For example, if a column holds 10, NULL and 20, then , and .
Option 2: COUNT(*) counts every row, including rows with NULLs, and this is what makes COUNT look like the exception. COUNT(column_name), however, ignores NULLs.
Related questions:
2025: 20 May Shift 1
2025: 3 June Shift 2
2025: 20 May Shift 1