Skip to content

Instantly share code, notes, and snippets.

@rachelwritingcode
Created August 14, 2017 02:59
Show Gist options
  • Save rachelwritingcode/3c5a2b015da450b4773ebfb3ec7b5787 to your computer and use it in GitHub Desktop.
Save rachelwritingcode/3c5a2b015da450b4773ebfb3ec7b5787 to your computer and use it in GitHub Desktop.
column "Movie" format a30;
select distinct tm.MovieTitle as "Movie"
from tblKeyword tk
inner join (tblKeywordDetail tkd
inner join tblMovie tm on tm.MovieID = tkd.MovieID )
on tkd.KeywordID = tk.KeywordID
where tk.KeywordDesc Like '%France%' OR
tk.KeywordDesc Like '%Pizza%' OR
tk.KeywordDesc Like '%Waitress%'
Order by tm.MovieTitle;
/*
Movie
------------------------------
30 Minutes or Less
Drive Angry
Saving Private Ryan
Taken
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment