• jcobb 20350 (6/29/2015)


    In all the posts, I completely missed the solution posted by LinksUp. This works great. Thanks so much.

    Glad it helped.

    When you get SQL 2014 installed, you can use the query that Pietlinden provided with LAG. It will be much faster!

    __________________________________________________________________________________________________________
    How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/