Learn with Abdou

Chapter 2 · Concept 6 of 6 · Practice

Define what first and top mean

ORDER BY, DESC, ties, LIMIT and OFFSET · level 3 of 6

Opening your saved work…

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

Define what first and top mean · ORDER BY, DESC, ties, LIMIT and OFFSET · level 3 of 6

Longest, or shortest?

Level 3: Predict the result · Exercise 2 of 2

A teammate wants the word count of Rick's longest line and writes the query below: ORDER BY wordCount, then LIMIT 1. Rick's longest line has 196 words. Before you run it, what wordCount comes back?

SELECT wordCount
FROM scripts
WHERE characterName = 'Rick'
ORDER BY wordCount
LIMIT 1;
The query. Predict before you run it.

Data: Rick & Morty.

Opens once your prediction is right, or after the worked answer.

Query results

The real result appears here after you run it.

The real result appears here after you run it.

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