Compare data between rows of same table

  • Thanks to Igor and Kingston for their help.

    The script works fine.

  • iam777here4u (4/25/2013)


    Thank you so much Kingston... that works. I will be implementing your logic in my original script. I hope using CTE for millions of data is okay. Let you know the result soon.

    The CTE here is just to make the script look neat. It should not cause any problems as such.

    You can post your results and we can see if it can be improved further in case of any performance troubles.


    Kingston Dhasian

    How to post data/code on a forum to get the best help - Jeff Moden
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

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

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