I have tried this a few different ways and it never seems to work:
SUM(
Select count(*) from table1 where month = 1 +
Select count(*) from table1 where month = 2 +
Select count(*) from table1 where month = 3
)
What is the proper way to do it? SUM(IF(case)) also didn’t work.
Will this do what you want?