• David McKinney (10/11/2010)


    Shouldn't you have a LEFT JOIN rather than an INNER JOIN?

    You're right! In haste, I ran an INNER JOIN so that I could just see the compared rows, but in hindsight, I probably should have kept my base table pure and ran a LEFT JOIN instead. This at least would have allowed me to keep my table counts the same as well as singling out the last row in each partitioned set.