Students meet tables, rows and columns, and write SELECT with named columns and with a star.
Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.
Predict and Run 8 min · Investigate 7 min · Modify and Make 10 min
On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.
One student names a detail of a song. Everyone else says which column holds it.
Putting SELECT, the columns and FROM in order. Say the query aloud: select these, from that table.
| What you will see | A question to ask | The fix |
|---|---|---|
| no such column | Does that word appear in the table list? | Copy the column name exactly as it is shown. |
| A comma after the last column. | What comes after the last column name? | Commas go between columns. FROM comes straight after the last one. |
One possible solution for each task. Other correct programs are fine.
SELECT title, genre
FROM songs;
SELECT title, artist, year
FROM songs;
Stretch: Show the columns in a different order and see that the table follows.
Support: Give the query with one column filled in and ask for the second.
What is the difference between a row and a column in the songs table?
A row is one song with all its details. A column is one kind of detail, such as title, for every song.
Next lesson: show only the rows that match, such as one genre.