dbTalk Databases Forums  

multi column sub select equivalent for sql server 2005

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss multi column sub select equivalent for sql server 2005 in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Jeff Kish
 
Posts: n/a

Default Re: multi column sub select equivalent for sql server 2005 - 12-04-2007 , 09:31 PM






On Tue, 4 Dec 2007 22:29:35 +0000 (UTC), Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
kishjeff (kishjjrjj (AT) charter (DOT) net) writes:
I guess that is the 'key', i.e. the character has to be absolutely not
in the data or it has the potential (small but real) to fail, right?

The key is that it is a completely unnecessary kludge, when there exists
a perfectly normal solution with NOT EXISTS.

Not that this kludge also prevents efficient use of indexes.

There are cases when concatenating stuff can be a useful trick, but this
is not one of them.
well NOT EXISTS it is then!
thanks Erland! (and everyone) I appreciate all the education.

Jeff


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.