# 求商品各项指标,具体包括点击率、加购率、成单率、退货率 # 要求在2021.10月退货率小于等于0.5 # 先计算时间范围内的各项指标,再筛选出退货率满足要求的 SELECT product_id, ROUND(SUM(if_click)/COUNT(*), 3), # 点击率 ROUND(SUM(if_cart)/SUM(if_click), 3), # 加购率 ROUND(SUM(if_payment)/SUM(if_cart), 3), # 成单率 ROUND(SUM(if_refund)/SUM(if_payme...