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 Creating a Table

I 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

The challenge asks to ensure unique IDs. So try:

create table members ( id, first_name, last_name, favorite_rock, PRIMARY KEY(id) );

This might help SQL CREATE TABLE although here you don't need to define data types.

That did not work

create table members ( id, first_name, last_name, favorite_rock, );

That 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.

Continuing on, I am doing exactly what this video is stating to do and I keep getting weird syntax errors:

Error: near "EXISTS": syntax error