解题
select log_id, dense_rank() over(order by log_id) rnk from Logs
{"headers": ["log_id", "rnk"],
"values...[1, 1], # 连续的做差相等
[2, 2],
[3, 3],
[7, 4],
[8, 5],
[10, 6]]}
# Write your MySQL...query statement below
select min(log_id) start_id, max(log_id) end_id
from
(
select log_id, dense_rank