select -- 最后根据日期进行汇总 t1.dt ,round(ifnull(count(distinct t2.product_id)/t3.release_cnt, 0), 3) as sale_rate ,round(1 - ifnull(count(distinct t2.product_id)/t3.release_cnt, 0), 3) as unsale_rate from ( -- 选出2021-10-01至2021-10-03三天中有销售数据的日期 select distinct date_format(event_tim...