Complete the code to count all non-NULL values in the column 'score'.
SELECT COUNT([1]) FROM results;The COUNT function counts only non-NULL values when a column name is specified. Using 'score' counts all non-NULL scores.
Complete the code to calculate the average of 'score', ignoring NULL values.
SELECT AVG([1]) FROM results;AVG(column) calculates the average ignoring NULLs. Using 'score' computes average of non-NULL scores.
Fix the error in the code to count all rows including those with NULL in 'score'.
SELECT COUNT([1]) FROM results;COUNT(*) counts all rows regardless of NULLs in any column.
Fill both blanks to calculate the total sum of 'score' treating NULL as zero.
SELECT SUM(COALESCE([1], [2])) FROM results;
COALESCE replaces NULL with 0 so SUM adds zeros instead of ignoring NULLs.
Fill all three blanks to count distinct non-NULL 'score' values greater than 50.
SELECT COUNT(DISTINCT [1]) FROM results WHERE [2] > [3];
COUNT(DISTINCT score) counts unique non-NULL scores. The WHERE clause filters scores greater than 50.