• Arshad Ali,

    Thank you for an excellent, well-written article! (Note: the code to populate your sample table is missing the declares for @CTO, etc.)

    gerald.drouin,

    Clever solution!