Viewing 15 posts - 46 through 60 (of 96 total)
Jeff Moden
October 14, 2009 at 3:25 pm
Jeff Moden (10/7/2009)
Now, there's a suggestion for a follow up article.
Sure, hint hint. I think it's old ground, though.
http://www.sqlservercentral.com/articles/Basic+Querying/understandingthedifferencebetweenisnull/871/
http://www.sqlservercentral.com/articles/Advanced+Querying/2829/
October 7, 2009 at 4:08 pm
SuperDBA-207096 (10/7/2009)
You might want to mention in the:
"Excluding the Intersection of the Sets" section this is similar to
select... where not in (select... from table2) but it performs alot better...
October 7, 2009 at 2:28 pm
David Walker-278941 (10/7/2009)
Jeff Moden (10/7/2009)
Actually, they ARE becoming required. The use of table names instead of aliases has been deprecated.
Even if they weren't, short table names may work fine...
October 7, 2009 at 10:10 am
Yet another article that makes people think that table aliases (t1 and t2) are part of the required syntax. This first Join statement:
SELECT t1.key1, t1.field1 as Name, t1.key2 as T1Key,...
October 7, 2009 at 9:15 am
James Stephens (10/1/2009)
October 1, 2009 at 3:18 pm
Nadrek (10/1/2009)
October 1, 2009 at 9:41 am
rja.carnegie (8/31/2009)
WHERE ( col = @value1 OR col = @value2 OR col = @value3 )
in which one or more of...
August 31, 2009 at 11:31 am
Yes. It is now clear that your post was about evaluating NULLs in WHERE clauses. I agree that it is correct to use "is NULL" as shown in...
August 24, 2009 at 1:24 pm
Lynn Pettis (8/24/2009)First, whoever wrote should not have used somecol = NULL. And if you pull the NOT inside the paranes, the change that should be made.
Sorry for the...
August 24, 2009 at 10:57 am
Lynn Pettis (8/24/2009)
Andy DBA (8/24/2009)
rja.carnegie (8/24/2009)
Andy DBA (8/18/2009)
Lynn Pettis (8/24/2009)
Andy, only change I'd make to your code is this:
... OR somecol IS NULL) ...
If you then moved the NOT inside...
August 24, 2009 at 9:12 am
rja.carnegie (8/24/2009)
Andy DBA (8/18/2009)
For example:
WHERE somecol NOT IN (1,2, NULL)
is equivalent to
WHERE NOT (somecol = 1 OR somecol = 2 OR somecol = NULL)
Wait, isn't that backwards? ...
August 24, 2009 at 8:05 am
rja.carnegie (8/17/2009)
IN(...) doesn't seem to mind if a NULL is in there. But NOT (name IN (...) ) apparently also does the same as (name NOT IN (...) )....
August 18, 2009 at 12:13 pm
John te Lintelo (8/11/2009)
Andy DBA (8/10/2009)
August 13, 2009 at 10:26 am
Tim Walker (8/10/2009)
The problem with your view is that with 8 pages of mostly adverse comments, nearly all of which I agree with, this article still has a four star...
August 10, 2009 at 11:00 am
Viewing 15 posts - 46 through 60 (of 96 total)