Skip to content

Commit 4f40f45

Browse files
Update Consecutive_Numbers.sql
1 parent f42e9a0 commit 4f40f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
select distinct l1.num as ConsecutiveNums from logs l1, logs l2, logs l3
22
where l1.id=l2.id+1 and l1.num=l2.num
33
and l1.id=l3.id+2 and l1.num= l3.num
4+
5+
6+
7+
--Rakshit Gupta

0 commit comments

Comments
 (0)