Results and the cheat sheet fill in as you go. Nothing here is locked; come back whenever you like.
Next in this path: Joining tables · 6 lessons · 1 h 10 min
Mastery by outcome
Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Turn many rows into one number with COUNT, SUM, AVG, MIN and MAX, and say how many rows such a query gives back.
Not yet
2
Count carefully: tell COUNT(*) from COUNT(mark), say what AVG does with NULL, and get a decimal answer from two whole numbers.
Not yet
3
Split rows into groups with GROUP BY and get one answer for each group, and say why a value with no rows has no group.
Not yet
4
Keep only some groups with HAVING, and choose between WHERE, which tests rows before grouping, and HAVING, which tests groups after it.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.
Build a report of one row per student, keep the groups that pass a test with HAVING, explain why a student with no rows is missing, fix an aggregate placed in WHERE, and find the largest totals.