SELECT MONTH (order_time) as month from dl_table GROUP BY month HAVING sum(amount) >=300
关于sql的一个分组查询和子查询