select product_id, round(sum(repurchase)/count(uid),3) as repurchase_rate from( select uid,product_id,if(count(event_time)>1,1,0) as repurchase from tb_order_detail as t1 inner join tb_order_overall as t2 using(order_id) inner join tb_product_info as t3 using(product_id) where tag='零食' and event_...