[LeetCode] 180. Consecutive Numbers
[문제] [MySQL]SELECT DISTINCT num AS ConsecutiveNumsFROM ( SELECT num , LEAD(num, 1) OVER (ORDER BY id) AS num_1_after , LEAD(num, 2) OVER (ORDER BY id) AS num_2_after FROM Logs) AS nums_listWHERE num = num_1_after AND num_1_after = num_2_after