标签:inf http ima number sele order com style select
SELECT a.team,MIN(Y),MAX(Y) from (SELECT ROW_NUMBER() OVER(ORDER BY team,Y) AS RN,* FROM t) AS a GROUP BY a.team,Y-a.RN HAVING COUNT(Y)>1
标签:inf http ima number sele order com style select
原文地址:https://www.cnblogs.com/xiaohuhu/p/13188752.html