Skip to content

Commit e9c31a0

Browse files
committed
modified: MySQL/consecutive-numbers.sql
1 parent d796c1e commit e9c31a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQL/consecutive-numbers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FROM (
2929
) sq
3030
WHERE how_many_cnt_in_a_row >= 3
3131

32-
# Solution 1
32+
# Solution 2
3333
SELECT DISTINCT l1.Num as ConsecutiveNums
3434
FROM Logs l1, Logs l2, Logs l3
3535
WHERE l1.Id + 1 = l2.Id AND l2.Id + 1 = l3.Id AND l1.Num = l2.Num AND l2.Num = l3.Num

0 commit comments

Comments
 (0)