Complete the code to count all rows in the table.
SELECT [1] FROM employees;COUNT(*) counts all rows, including those with NULLs in any column.
Complete the code to count only non-NULL values in the salary column.
SELECT [1] FROM employees;COUNT(salary) counts only rows where salary is not NULL.
Fix the error in the query to count all rows including those with NULLs in department_id.
SELECT [1] FROM employees WHERE department_id IS NOT NULL;To count all rows including those with NULLs, use COUNT(*) and remove the WHERE filter.
Fill both blanks to count unique non-NULL values in the email column.
SELECT [1]([2]) FROM employees;
Use COUNT(DISTINCT email) to count unique non-NULL emails.
Fill all three blanks to count all rows and count non-NULL phone numbers separately.
SELECT [1](*) AS total_rows, [2](phone_number) AS phone_count, [3](phone_number) AS unique_phones FROM employees;
COUNT(*) counts all rows.
COUNT(phone_number) counts non-NULL phone numbers.
COUNT(DISTINCT phone_number) counts unique non-NULL phone numbers.