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 Modifying Data with SQL Adding Data to a Database Adding Data With SQL

"Was expecting 11 entries in the users table. There's only 10" error?

Hey! Why am I getting "Was expecting 11 entries in the users table. There's only 10" error?

Brandon White
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brandon White
Full Stack JavaScript Techdegree Graduate 35,454 Points

In order for us to be able to help you with this, sherelle, you have include the code you’ve written. Otherwise, we can’t test it to see what’s causing the issue.

INSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds");

3 Answers

Hi Sherelle

The users table has 4 columns: username, password, first_name, last_name (I will not count 'id' since this column is auto incrementing). You are passing values to only 2 columns. The challenge states that all columns are required.

I hope this hint helps!

Thank you! I updated it to INSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds", "9.9", "first"); this worked

INSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds");

Great to hear, Sherelle, you are welcome!