• ChrisM@Work (1/24/2014)


    Grant Fritchey (1/24/2014)


    Nice job Chris. I'd love to see what the execution plan of the original query looked like.

    Thanks Grant. Me too, there are over 70 reads of the lookup.

    Yeah, I'm curious how the optimizer is resolving those. With a much smaller number I would expect it to figure out the JOIN on its own. With such a big number... it could be fun.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning