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 trialGregory Ely
787 PointsI am pretty sure I have typed in the 'create' parameter correctly. I also attempted to remove table and it said no such
I am pretty sure I have typed in the 'create' parameter correctly. I also attempted to remove the 'CONCERTS' table and it said no such tables exist, but I still see it.
4 Answers
KRIS NIKOLAISEN
54,972 PointsThe challenge asks to ensure unique IDs. So try:
create table members ( id, first_name, last_name, favorite_rock, PRIMARY KEY(id) );
KRIS NIKOLAISEN
54,972 PointsThis might help SQL CREATE TABLE although here you don't need to define data types.
Gregory Ely
787 PointsThat did not work
create table members ( id, first_name, last_name, favorite_rock, );
Gregory Ely
787 PointsThat worked. I appreciate the swiftness of replies. A couple of things appear missing from the track I was following: 1) There is a space after the first parenthesis. 2) Although I may have reasonably guessed PRIMARY KEY was missing, I would have placed it earlier in the lines based on the little I have already been shown. 3) I do not understand why the PRIMARY KEY is specifying an integer.
I am really - really - new at this.
Thanks again.
Gregory Ely
787 PointsContinuing on, I am doing exactly what this video is stating to do and I keep getting weird syntax errors:
Error: near "EXISTS": syntax error