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 Updating Data in a Database Updating Data With SQL

Not sure what I'm missing here...

I've tried a few ways to go about this, such as

UPDATE phone_book SET first_name = "Mystery"; UPDATE phone_book SET last_name = "Person";

I thought if all else fails even this code would take care of the challenge but still nothing.

1 Answer

Hey Brian Diaz! You are super close and while that would work, I think for this challenge it is wanting you to update both of them with one statement. For example say you want to update a products name and price: UPDATE product SET product_name="Coffee", product_price=3.99; List out what you are wanting to be changed with a comma between each.

Hope this helps! Happy coding :D

This did the trick, I tried to one line the code earlier but was unaware about the comma. Thanks!