描述
Write a SQL query to find all numbers that appear at least three times consecutively.
1 | +----+-----+ |
For example, given the above Logs table, 1 is the only number that appears consecutively for at least three times.
分析
找出 Id 连续且值相同的 Num
解决方案(MySQL)
1 | # Write your MySQL query statement below |