Created
August 14, 2017 03:01
-
-
Save rachelwritingcode/728fc6840c57408e36de27a5f911470c to your computer and use it in GitHub Desktop.
This file contains 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
Column "Movie Title" format a35; | |
select "Movie Title" | |
from (select tm.MovieTitle as "Movie Title", | |
count(tad.MovieID) as "Total Awards" | |
from tblMovie tm | |
inner join tblAwardDetail tad on tm.MovieID = tad.MovieID | |
where tad.AwardResultID = '1' | |
group by tm.MovieTitle | |
order by "Total Awards" desc) | |
where ROWNUM = 1; | |
/* | |
Movie Title | |
----------------------------------- | |
Saving Private Ryan | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment