Learn with Abdou

Chapter 2 · Concept 3 of 6 · Practice

Ask for Morty

WHERE, boundaries, AND, OR, parentheses, IN and BETWEEN · level 3 of 6

Opening your saved work…

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

Ask for Morty · WHERE, boundaries, AND, OR, parentheses, IN and BETWEEN · level 3 of 6

Outside the range

Level 3: Predict the result · Exercise 1 of 2

The first ten lines have these word counts, in id order: 11, 5, 7, 11, 12, 7, 15, 19, 8, 27. The query below keeps the ones whose wordCount is NOT BETWEEN 5 AND 11. Before you run it, how many rows come back?

SELECT id, wordCount
FROM scripts
WHERE id <= 10 AND wordCount NOT BETWEEN 5 AND 11
ORDER BY id;
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.