我怎样才能找到nonusboxoffice的最高价值

时间:2015-11-08 22:14:38

标签: sql

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的最高值?

1 个答案:

答案 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