with t1 as ( select * from tb_order_overall where datediff((select max(date(event_time)) max_date from tb_order_overall), date(event_time)) <= 89) select product_id, round(sum(if((purchase_time >=2), 1, 0)) / unum, 3) repurchase_rate from (select product_id, t3.uid, count(1) purchase_time...