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.


Ralph Findling
Ralph Findling
5,270 Points

Must I include the table references? It seems to work in MySQL without specifying them

Why is this not accepted as a solution?
SELECT title, name FROM movies INNER JOIN genres ON genre_id = id;

It seems to work without the need to specify them in MySQL, since there is no overlap on column names in both tables. The above, however did not pass the challenge.

1 Answer

The challenge system might be more specific/less forgiving than the actual MySQL query language.

You could omit things when actually using MySQL, but it's generally better to be a bit more explicit and clear about what you're doing, if only so you can better understand the code when looking at it later.