Learn with Abdou

Chapter 9 · Concept 2 of 6 · Practice

Add a row that fits

INSERT with named columns, defaults, a parent that exists · level 3 of 6

Opening your saved work…

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

Add a row that fits · INSERT with named columns, defaults, a parent that exists · level 3 of 6

Which id does the new shop get?

Level 3: Predict the result · Exercise 1 of 1

There are eight shops, ids 1 to 8. INSERT INTO shops (name, city) VALUES ('Northshore Harbor', 'Duluth') leaves the id out. Before you check, what id will the new shop receive?

SELECT MAX(id) + 1 AS next_id
FROM shops;
The query. Predict before you run it.

Data: Northshore Coffee.

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.