sugoll (sugoll) wrote,
sugoll
sugoll

SQL question

Suppose I have a table T with columns V and I - V is some value, and I is some increment. Can anyone suggest a query that'll produce the longest sequence of rows where V+I == V', and V'+I' == V'' and so on. The longest continuous sequence of values made up of the different rows, as it were?
Tags: computers, mysql
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 12 comments