select date_format(event_time,'%Y-%m') month,sum(case when status=1 or status = 0 then total_amount else 0 end) GMV from tb_order_overall where year(event_time)=2021 group by month having GMV > 100000 order by GMV

select date_format(event_time,'%Y-%m') month,sum(case when status=1 or status = 0 then total_amount else 0 end) GMV from tb_order_overall where year(event_time)=2021 group by month having GMV > 100000 order by GMV