Created
September 5, 2014 17:54
-
-
Save jfarmer/3da96dba19523c07dca2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT p.* | |
| FROM projects AS p | |
| JOIN genres_projects AS gp | |
| ON (gp.project_id = p.id) | |
| JOIN genres AS g | |
| ON (gp.genre_id = g.id) | |
| WHERE g.name IN ('Drama', 'Comedy') | |
| GROUP BY p.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment