Select TITLE, RELEASEYEAR, MAX(NONUSBOXOFFICE)
From BOXOFFICEMOJO b
Where (b.RELEASEYEAR > 2009 AND b.RELEASEYEAR <= 2015 AND MOD(RELEASEYEAR, 2) = 1)
GROUP BY TITLE, RELEASEYEAR ;
如何找到NONUSBOXOFFICE
的最高值?
答案 0 :(得分:0)
这将为您提供最高的nonusboxoffice:
Select TOP 1 TITLE, RELEASEYEAR, MAX(NONUSBOXOFFICE)
From BOXOFFICEMOJO b
Where (b.RELEASEYEAR > 2009 AND b.RELEASEYEAR <= 2015 AND MOD(RELEASEYEAR, 2) = 1)
GROUP BY TITLE, RELEASEYEAR ;
ORDER BY 3 DESC