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

PHP

Help me out to solve this challenge

Thanks for your help

Simon Coates
Simon Coates
28,694 Points

you don't seem to have linked to a challenge.

1 Answer

Simon Coates
Simon Coates
28,694 Points

Try

SELECT * FROM Media 
JOIN Media_Genres ON Media.media_id = Media_Genres.media_id 
JOIN Genres ON Genres.genre_id = Media_Genres.genre_id
WHERE Media_Genres.media_id =3

With tasks like this, you can typically find someone whose already had the problem using treehouse forum search or google (search on "treehouse" and some specific term from the challenge like "media-genres"). The SQL challenges particularly trip a lot of people up. At least one of the SQL challenges is very poorly written.