Daily LeetCode #12
Some notes on problems from SQL 50. https://leetcode.com/problems/consecutive-numbers/submissions/1431765550/?envType=study-plan-v2&envId=top-sql-50 SELECT l1.num AS ConsecutiveNums FROM Logs AS l1 JOIN Logs AS l2 JOIN Logs AS l3 WHERE l3.id - l2.id = 1 AND l2.id - l1.id = 1