Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases Creating and Modifying Database Tables Creating and Modifying Database Tables Making Changes to a Database

YA Abidakadr
YA Abidakadr
Courses Plus Student 2,017 Points


this is the code i written for the task:

create table if not exists members( id integer primary key autoincrement, first_name, last_name, favorite_rock_id references rocks(id) );

1 Answer

Steven Parker
Steven Parker
229,921 Points

When I paste that directly into the challenge, it passes just as-is. Try again.

You are doing a bit more than the challenge asked for, however. There's no requirement for the "if exists" test, nor does it ask for the autoincrement or the type specifier for the ID.