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

Lee Carlton
3,024 PointsCan't get correct answer on the Database Foundations Joining Relational Data quiz -- results not helpful
Hi,
I feel like I have the correct expression written, but I get an incorrect each time I write my answer out. Also, Treehouse needs to fix the html on the quotes. It isn't writing out what I have below. It has the html (which I can't write here, because it makes it disappear)
<b>Here is the question: </b>
Create a genres table called "genres" with an auto incrementing primary key called "id" and a unique column called "name" that can't be null. The "name" is a varchar of up to 45 characters.
Here is my answer:
CREATE TABLE genres (id INTEGER AUTO_INCREMENT PRIMARY KEY, name VARCHAR(45) NOT NULL UNIQUE);
It marks it wrong and gives this as the error:
990d7bf2-1857-48d9-a531-9251a6062985.rb:38:in eval': wrong number of arguments (at least 1) (ArgumentError)
from (eval):11:in
<main>'
from 990d7bf2-1857-48d9-a531-9251a6062985.rb:38:in eval'
from 990d7bf2-1857-48d9-a531-9251a6062985.rb:38:in
<main>'
Any help would be appreciated. Thanks!
2 Answers

Tunde Adegoroye
20,597 PointsMake auto increment last after primary key that should work

Lee Carlton
3,024 PointsThanks!