select date_format(event_time, '%Y-%m') as month, sum(total_amount) as GMV from tb_order_overall where status in (1,0) and year(event_time) = 2021 group by 1 having sum(total_amount) > 100000 order by 2 ;