Skip to course content
Free SQL course

SQL for Data Analysis and AI

Module 03 Knowledge Check

5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.

1. What does NULL mean in SQL?

2. WHERE country <> 'IN' silently excludes which rows?

3. A table has 500 rows, 60 with rating IS NULL. AVG(rating) averages over…

4. When is COALESCE(score, 0) the right choice?

5. Comparing a stored '2026-06-01' text column to a date can fail because…

---

Answer Key and Explanations

Check these only after attempting every question.

1. C - Unknown

NULL is unknown. That is why comparisons with it return NULL rather than TRUE or FALSE.

2. B - Rows where country IS NULL

NULL <> 'IN' evaluates to NULL, not TRUE, so those rows fail the filter and vanish without warning.

3. B - 440 rows

Aggregates skip NULLs. Reporting that average without stating the denominator implies full participation.

4. C - Only when a missing value genuinely means zero, not merely unrecorded

This is a judgement about the data. An unrecorded score is unknown; substituting zero invents information.

5. B - Type mismatch means the comparison may be lexical, not chronological

Storing dates as text invites string comparison, which orders '10' before '9'.

Practical Check

Apply this module to your own work: complete the module activity for *Data Types, Missing Values, and Safe Filtering*, then write one sentence naming what your result shows and one naming what it does not.

Strong Answer Pattern

A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.