Learn with Abdou

Chapter 2 · Concept 1 of 6 · Practice

Meet the table

SELECT, FROM, ORDER BY id and LIMIT as a preview · level 2 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 2 of 6

Choose the evidence

Level 2: Fill the blank · Exercise 2 of 2

Return id, lineIndex and episodeName, with episodeName headed episode, for the first four lines. Fill in the column that makes first four mean the same four every time. Before you run it, say how many rows and columns come back.

Finish line: 4 rows · columns id, lineIndex, episode · in the order the question gives

Data: Rick & Morty.

Fill the blankOpening the database…
SELECT id, lineIndex, episodeName AS episode FROM scripts ORDER BY LIMIT 4;
  1. Blank 1 of 1: the column that makes the first four repeatable
Open in the playground

Query results

Check to see the result here.

Check to see the result here.

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