Skip to content

Commit ef630f7

Browse files
committed
Update consecutive-numbers.sql
1 parent 5db9122 commit ef630f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MySQL/consecutive-numbers.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ FROM (
2424
Num,
2525
@counter := IF(@prev = Num, @counter + 1, 1) AS how_many_cnt_in_a_row,
2626
@prev := Num
27-
FROM
28-
Logs y
29-
, (SELECT @counter:=1, @prev:=NULL) vars
27+
FROM Logs y, (SELECT @counter:=1, @prev:=NULL) vars
3028
) sq
3129
WHERE how_many_cnt_in_a_row >= 3

0 commit comments

Comments
 (0)