• Sorry, I didn't realize that you were on SQL 2005. You need SQL 2012 to use this construct. I should pay more attention to which forum I'm in.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA