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

Andrew Dovganyuk
Andrew Dovganyuk
10,633 Points

Can't find what is wrong with a SQL code, please guys help me here!

Challenge Task 1 of 3 We have an eCommerce database and it has a products table. It has the columns id, name, description and price. Add a new product to the products table. Use any valid values you want. All columns are required. The idcolumn is auto incrementing.

 ERROR: Bummer! Was expecting 4 entries in the products table. There's only 3.
INSERT INTO products (id, name, description, price)
VALUE (NULL, "Banana", "this is a short description for a product", 9.99);

I don’t understand what is wrong with my code. I added 4 entries, but the output error. Maybe I do not understand the question! Please guys help me here!

1 Answer

Andrew Dovganyuk
Andrew Dovganyuk
10,633 Points

Oh never mind guys I found the mistake!!! It was a forgotten <S> on the end of VALUE!!! Got it! :0)