Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases Modifying Data with SQL Updating Data in a Database Updating Data in a Database Review

Andrii Kodola
seal-mask
.a{fill-rule:evenodd;}techdegree
Andrii Kodola
Full Stack JavaScript Techdegree Student 16,870 Points

Problem with a quiz about UPDATING. Modifying Data With SQL course.

Hello. I don't understand why "=" isn't the wright answer. The rows with id = 1, 4 have to be changed from NULL. And also I don't understand why values 1 and 4 are in round brackets.

2 Answers

akak
akak
29,445 Points

If you want to update multiple rows you can use IN operator and then those rows in parenthesis.

UPDATE games SET platform = "Cross-Plaform" WHERE id  IN (1,4)