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

Databases

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.