• Dense_Rank() would be a better choice for your windowing function as it would permit duplicate values to exist in your data islands.



    PeteK
    I have CDO. It's like OCD but all the letters are in alphabetical order... as they should be.