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 Review and Practice

Robert Cooper
Robert Cooper
22,704 Points

No movie with title "Starfighter" to update in the second practice exercise in SQL Playground.

The second practice exercises in SQL Playground asks:

-- Update the movie with "Starfighter" in the title to be from the year 1984

However, there is no movie with the title "Starfighter" in any of the databases. Not sure if this is an error Andrew Chalkley.

I just had the same issue. I was about to report it. It still hasn't been corrected.

2 Answers

Robert Cooper
Robert Cooper
22,704 Points

Oh, I did not even see that movie as an option. I guess the question does make sense since the question does not say the entire movie title is "Starfighter", but rather the word "Starfighter" should be included in the title. My mistake! Thanks for the quick answer Dale Severude!

Hello,

The question is asking you to find the movie with "Starfighter" in the title. You can use an update such as this.

UPDATE movies SET year_released = 1984 where title like "%Starfighter"; 

Hope that helps.

I actually solved it exactly like this.

horus93
horus93
4,333 Points

Though since it wants to search for Starfighter anywhere in the title I'd think it'd be better to do instead, because even though we know it's at the end in this instance, if we had others on the list containing "Starfighter", we might miss them if we just did "%Starfighter" no?

UPDATE movies SET year_released = 1984 where title like "%Starfighter%";

thanks for the clarification.