If exists is a well known way to improve performance because it returns as soon as it matches a single row - at that point it knows the condition is true and there is no need to continue.During a recent www.opass.org meeting guest speaker Bill Graziano mentioned that he uses if exists (select 1) instead of if exists (select *) as a performance optimization. Discussion revealed that this was based on a conversation with a MS person at some point, but Bill didn't have online URL to support it. Note that I'm not knocking Bill here, just curious to see if anyone can shed any light on this.
Book Review: Big Red - Voyage of a Trident Submarine
I've grown up reading Tom Clancy and probably most of you have at least seen Red October, so this book caught my eye when browsing used books for a recent trip. It's a fairly human look at what's involved in sailing on a Trident missile submarine...
2009-03-10
1,439 reads