with t as ( select tod.product_id product_id,tag,uid,date(event_time) dt, max(date(event_time)) over() max # 最大日期 from tb_order_overall too join tb_order_detail tod on too.order_id = tod.order_id join tb_product_info tpi on tpi.product_id = tod.product_id where status = 1 and tag = "零食" ),...