Pls help! Whats wrong with my Code?


  • 0
    X

    select distinct Num as ConsecutiveNums
    from Logs
    where Num=(select L2.Num from Logs L2 where L2.Id=Id+1) and
    Num=(select L3.Num from Logs L3 where L3.Id=Id+2)


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.