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 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)