selectyear(AA_YWRQ) as YEARS,month(AA_YWRQ) AS Months ,AA_YWLX,count(AA_YWLX) as Number fromAAgroup by year(AA_YWRQ),month(AA_YWRQ),AA_YWLX