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

Robert Cooper
Robert Cooper
22,703 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,703 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.