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 trialPhilip Bessa
5,396 PointsChallenge broken? (task 1)
It's either broken or I don't get it.
Add a column to the movies table called 'genre' and is of type VARCHAR up to 25 characters in length.
ALTER TABLE movies_table ADD COLUMN genre VARCHAR(25);
Bummer! You're not using 'ADD' to add a column to the movies table.
1 Answer
John Steer-Fowler
Courses Plus Student 11,734 PointsHi Philip,
The table is called 'movies', not 'movies_table'
Hope this helps
Philip Bessa
5,396 PointsThank you! I think it would be more clearer if the table was a different name entirely to avoid confusing it to the workspace stuff.
John Steer-Fowler
Courses Plus Student 11,734 PointsYeah, I agree actually.
By the way, you could also cut out some of the syntax from that statement.
You could write it like this:
ALTER TABLE movies ADD genre VARCHAR(25)
Compared to this:
ALTER TABLE movies ADD COLUMN genre VARCHAR(25);
Less typing equals more time to relax :D
Philip Bessa
5,396 PointsPhilip Bessa
5,396 PointsSo the solution is:
ALTER TABLE movies ADD COLUMN genre VARCHAR(25);
This whole time in the videos we're dealing with "movie_table" and the like, so the challenge has similar but different table names which make it harder to get the names right instead of the syntax. The other two challenges are just as weird.