Evil Kraig F (11/28/2012)
This is NOT pretty, but it IS functional.
I am trying to understand why went with a loop vs a set-based approach. I posted a more set based method earlier that gets the same results notably faster. I am not trying to be confrontational, I'm just trying to understand your approach or what I did wrong.
-- Itzik Ben-Gan 2001