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 2 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 2 of 6

Add a flag with a default

Level 2: Fill the blank · Exercise 1 of 1

Add an is_vegan flag to the menu, an integer that starts at 0 for every existing item. Fill in the verb.

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

Fill the blankOpening the database…
ALTER TABLE menu_items is_vegan INTEGER DEFAULT 0;
  1. Blank 1 of 1: the two words that add a column
Open in the playground

Query results

Check to see the rows the question is about.

Check to see the rows the question is about.

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