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 trialsherelle smith
1,387 Points"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?
sherelle smith
1,387 PointsINSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds");
3 Answers
Ave Nurme
20,907 PointsHi 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!
sherelle smith
1,387 PointsThank you! I updated it to INSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds", "9.9", "first"); this worked
sherelle smith
1,387 PointsINSERT INTO users (username, password, first_name, last_name) VALUES ("pass", "jdjhfjds");
Ave Nurme
20,907 PointsGreat to hear, Sherelle, you are welcome!
Brandon White
Full Stack JavaScript Techdegree Graduate 34,662 PointsBrandon White
Full Stack JavaScript Techdegree Graduate 34,662 PointsIn 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.