Learn with Abdou

Chapter 9 · Concept 5 of 6 · Practice

Change the shape, not the facts

ALTER TABLE ADD COLUMN, DROP TABLE IF EXISTS, what the engine cannot do · level 5 of 6

Opening your saved work…

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

Change the shape, not the facts · ALTER TABLE ADD COLUMN, DROP TABLE IF EXISTS, what the engine cannot do · level 5 of 6

The old copy is still there

Level 5: Repair it · Exercise 1 of 1

The build script is supposed to remove the backup table. After it runs, the table is still listed, empty.

This statement was meant to get rid of menu_items_old. It runs, and the table is still there with no rows. Fix it so the table itself is gone and a rerun is harmless, and say what the original did instead.

Data: Northshore Coffee. Every run starts from a fresh copy, so nothing you try here is permanent.

Opening the database…

Each run starts from a fresh copy of the data, then shows the rows the question is about.

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 to see the rows the question is about.

Run to see the rows the question is about.

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