• GilaMonster (3/9/2014)


    What doesn't work?

    That's a derived table that Jessie posted, you'd put it in the join clause and join to it like a table.

    I appreciate it. Could I get the entire syntax?

    For better, quicker answers on T-SQL questions, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/