你能帮我用一个 sql 语句来按月和按年查找 Appid 计数顺序,但不要计算现有的月和年 appid
column name TYPE
ID int
AppID int
Month int
Year int
Records
ID Appid Month Year
207 396 Jan 2013
250 396 Feb 2013
283 396 Mar 2013
319 396 Apr 2013
365 396 May 2013
221 451 Feb 2013
262 451 Mar 2013
293 451 Apr 2013
329 451 May 2013
384 451 June 2013
354 609 May 2013
394 702 June 2013
353 707 May 2013
我想要如下的输出,
Month count
January 1
February 1
March 0
April 0
May 2
June 1
例如,如果 appid = 396,我只想显示所有 appid 的最小月份记录数,只有 2 月的值为 1