jnelson993
Posts: 899
Score: 127 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
BTW, the code that blogcast post is less-than-ideal because of unecessary joins and way too much extra stuff, especially in that second . Don't get me wrong, if it works for you, then don't worry about it, it's not horrible, but I prefer to make sure the code I implement is as tight as possible. There are several articles out there explaining NOT IN subselect queries, but most or all of them are missing some important (in my mind anyway) optimizations that are needed to make it as clean and efficient as possible. I'm planning to write an article on this, but it's just based on my time, and we're in the middle of CM planning and rollout so...I'll get to it when I get to it. :)
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|