select e2.product_id, round(e2.click/e2.num,3) as ctr, round( e2.cart/e2.click,3) as cart_rate, round( e2.payment/e2.cart,3) as payment_rate, round( e2.refund/e2.payment,3) as refund_rate from ( select e1.product_id, count(*) as num, sum(if_click) as click, sum(if_car...