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 (update quiz)

I am wondering normally "phone" should be considered as a string or integer when we setup a database?

UPDATE phone_book SET first_name = "Mystery", last_name = "Person" WHERE phone = 123;

The code I attached dont pass the test, why? Phone is not a number which should be integer?

Thanks.

1 Answer

Steven Parker
Steven Parker
231,007 Points

:point_right: Are you sure you need a WHERE clause?

You didn't provide a link to the challenge, but if it's the one I'm thinking of, it expects you to change the name of all contacts — so you would not use a WHERE clause.

Please add a link to the challenge if it's not that one.

You are correct! This is the challenge I do which require to update the contact! Thanks you so much for helping me to resolve the problem.