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.
1 | +-----------------+ |
内连接
连接2次, 找到连续出现3次的值之后去重
1 | # Write your MySQL query statement below |