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 trialRobert Cooper
22,704 PointsNo 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.
2 Answers
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsGood catch. I think they mean to set "The Last Starfighter" to 1984.
Robert Cooper
22,704 PointsOh, 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!
Luke Vaughan
15,258 PointsHello,
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.
Krish Penumarty
3,053 PointsI actually solved it exactly like this.
horus93
4,333 PointsThough 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%";
Melinda Long
687 Pointsthanks for the clarification.
Che Perth
1,989 PointsChe Perth
1,989 PointsI just had the same issue. I was about to report it. It still hasn't been corrected.