我想采用以下语句并将其融合到一个查询中。
SELECT COUNT(*) AS count1 WHERE Month='11' AND Flag = 1
SELECT COUNT(*) AS count2 WHERE Month='11' AND Flag = 2
SELECT COUNT(*) AS count1 WHERE Month='12' AND Flag = 1
SELECT COUNT(*) AS count2 WHERE Month='12' AND Flag = 2
我希望它显示为一个查询,其中包含 count1 和 count2 列以及第 11 个月和第 12 个月的行。
有没有这样的语法?