Learn with Abdou

Chapter 2 · Concept 1 of 6 · Practice

Meet the table

SELECT, FROM, ORDER BY id and LIMIT as a preview · level 1 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

Meet the table · SELECT, FROM, ORDER BY id and LIMIT as a preview · level 1 of 6

Three columns that identify a line

Level 1: Watch it answered · Exercise 2 of 2

Which three columns let you point at one line and say who said it, and where? Watch the query choose them, then run it.

Data: Rick & Morty.

Why it works, clause by clause

  1. SELECT id, characterName, episodeName: the id to point at one line, the name to say who, the episode to say where. Three columns, in that order.
  2. FROM scripts, ORDER BY id, LIMIT 3: the same three lines every time, as a preview.

From the reading: One row is one spoken line, paragraph 3

The queryOpening the database…
SELECT id, characterName, episodeName
FROM scripts
ORDER BY id
LIMIT 3;
Open in the playground

Query results

Run it to see the result here.

Run it to see the result here.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.