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!
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
YA AbidakadrCourses 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) );
Steven Parker224,923 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.