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

what wrong with my query here ?

SELECT movies.title ,genres.name from movies INNER JOIN genres;

1 Answer

Matthew Smart
Matthew Smart
12,567 Points

This is the format you should be using

 SELECT column_name(s)
 FROM table1
 INNER JOIN table2
 ON table1.column_name=table2.column_name;

So you are missing out the "ON table1.column_name=table2.column_name;" part.

This is how the two tables join together