find the missing nos in the continues series

  • Hi There,

    Category Nos

    A 1

    A 2

    A 3

    A 5

    A 6

    A 9

    A 10

    B 23

    B 24

    B 25

    B 27

    B 28

    B 29

    B 31

    Consider the above data...

    I need following output... Help me with query ..

    Category Min Range Max Range

    A 1 3

    A 5 6

    A 9 10

    B 23 25

    B 27 29

    B 31 31

    Logic Behind :

    if any number is missing in the continues series the return the min and max of number in that range.

    Thanks In advance

  • This is the same problem as in your previous question and the solution is the same.

    The expected result doesn't match the title of your post since you are asking for the MIN and MAX values in each island.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply