where year(t.date) =year(curdate( ))
quarter(t.date)<quarter( curdate( ))
选择某个月,直接过滤这个月所在的季度?
trunc(日期,'q') 试试看这个
and a.月份<ceiling(month(getdate())/3.0)
加在这里