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

Peter Chukwukelu
PLUS
Peter Chukwukelu
Courses Plus Student 833 Points

Hello please help me with the syntax for creating this table "Rocks" in this challenge.

Below is the syntax I submitted, I don't know where I get it wrong: CREATE TABLE ROCKS (ID INTEGER PRIMARY KEY, NAME(VARCHA 255), TYPE(VARCHA 255), COLOR(VARCHA 255) );

Below is the information for creating the table:

In the last challenge we created a table for the members of our rock collecting club. Now, we'd like to add a ROCKS table to store information about our favorite rocks. Can you create a table named ROCKS with the following columns: ID, NAME, TYPE, COLOR. And make sure that ID is a primary key.

1 Answer

I would take a look at the video prior to the challenge.

Look closely at the NAME, TYPE and COLOR as you have most of it there just some issues with how it is formatted and a typo or three.