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

Development Tools

Querying Tables in MYSQL

I am on a code challenge where it is asking me to select all movies from the year 2003. I put in SELECT movies.title FROM movies WHERE year = 2003 and it returns with the results, but says it is incorrect.

1 Answer

Andrew McCormick
Andrew McCormick
17,730 Points

I haven't done those lessons yet to know what they are looking for but it looks like you are only choosing the 'title' column from each row where it may just want you to return the row. Try SELECT * FROM movies WHERE year = 2003

Andrew is right, your answer is correct but for this question you have to put SELECT*FROM.