select province,count(*),sum(if(is_shipped = 0,1,0)),sum(if(is_shipped = 0,1,0))/count(*) from zhuMall.order where `is_deleted` = 0 and add_time > unix_timestamp(now())-30*24*60*60 group by `province` order by `province`