Learn with Abdou

Chapter 9 · Concept 1 of 6 · Practice

The preview would update every tea

a SELECT with the same WHERE before any change · level 5 of 6

Opening your saved work…

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

The preview would update every tea · a SELECT with the same WHERE before any change · level 5 of 6

Catch the scope error

Level 5: Repair it · Exercise 1 of 1

A teammate's preview for the tea raise shows twelve rows. There are seven teas.

This preview is meant to show the rows that UPDATE menu_items SET price = price * 1.05 WHERE price < 5 would change if it were the tea raise. It shows items under five dollars, tea or not. Fix the preview so it shows id, name and price for Tea items priced below 5, ordered by id, and say what the original was previewing.

Finish line: 3 rows · columns id, name, price · in the order the question gives

Data: Northshore Coffee.

Opening the database…
Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · Northshore Coffee

Press Esc or click outside to return to your query. PK = primary key · FK = declared foreign key.

This database has no tables yet. Create a table, then reopen the schema to see its columns.

Control Space also opens names. Enter adds a new line. Control or Command Enter runs your query.
Open in the playground

Query results

Run your query to see the result here.

Run your query to see the result here.

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