• slightly different than the correlated subquery is the option of using a CTE. Use the cte to join back to the original table to get the results you are seeking.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events