select distinct shop_no from(select a.shop_no,a.order_date from Table a inner join Table b on a.shop_no=b.shop_no and a.order_date>=b.order_date and a.order_date<=b.order_date+2 where b.order_num>100 group by 1,2 having count(*)=3)
牛客网
牛客企业服务