I can add a row to a table with INSERT INTO ... VALUES.
I can match the values to the columns, in order.
I can check a change with a SELECT afterwards.
Running the lesson
Predict: most students get this. The point is that a query can now change the table.
Run: the second run fails, which is the lesson on keys: an id belongs to one row. Ask why a table would refuse a repeat.
Investigate: NULL is a new idea. Ask students what a missing year should show.
Reset undoes every change, so students can experiment freely.
The hard part (on purpose)
Keeping values in column order. Write the column names above the values.
When students get stuck
UNIQUE constraint failed Ask: Has this id been used already? Fix: Choose an id that is not in the table, or press Reset and run once.
table songs has 7 columns but 3 values were supplied Ask: How many columns does the table have? Fix: Give a value for every column, or name the columns you are filling.
Text without quotes. Ask: Which values are text? Fix: Text values go in single quotes. Numbers do not.
Stretch and support
Stretch: Add a song with a column list that leaves plays out. What does plays hold?
Support: Give the INSERT with one value blank for each task.
Where it leads
Next lesson: change and remove rows with UPDATE and DELETE, and why WHERE matters.
What each step is for
Investigate: The values must line up with the columns. Name only some columns and the rest are left empty (NULL).