Viewing 15 posts - 31 through 45 (of 82 total)
L' Eomot Inversé (5/17/2013)
SQL became "SQL" because someone other than IBM owned the rights to the original name the IBM developers who...
May 17, 2013 at 8:44 am
Hugo Kornelis (5/15/2013)
May 15, 2013 at 7:14 am
Cliff Jones (5/14/2013)
May 14, 2013 at 9:13 am
declare @test-2 int
set @test-2=-2
select case when @test-2 between -1 and -10 then 'Order does not matter'
else 'Order matters' end as Conclusion
It would seem...
May 14, 2013 at 6:29 am
Stewart "Arturius" Campbell (5/9/2013)
God question, thanks - one of the reasons why i prefer to use JOINs over subqueries.
The downside to joins is that they can permit duplication if referential...
May 9, 2013 at 8:28 am
Hugo Kornelis (5/2/2013)
Rune Bivrin (5/2/2013)
May 2, 2013 at 7:15 am
Good to know before trying to use conditional declarations.
April 30, 2013 at 7:16 am
I was initially leaning toward the right answer for the right reason, then talked myself out of it, thinking that SQL Server would be able to handle it. :hehe:
Of course,...
April 26, 2013 at 7:09 am
I too got it right for the wrong reason, thinking the second insert was the one that succeeded.
April 24, 2013 at 9:19 am
Dineshbabu (4/18/2013)
Nice question..Somebody tell me what does that ALL mean in a select statement (4th option)..
I had been nervous about that keyword too. It is apparently the default, and...
April 18, 2013 at 6:36 am
Dineshbabu (4/18/2013)
Is there anyway to make COUNT() to consider even NULL values?? I mean any set options or something like that?
To get count() to include null values, you can simply...
April 18, 2013 at 6:26 am
Sean Lange (4/15/2013)
April 15, 2013 at 9:45 am
I get the same results both ways, even for days with no guests of one gender or no guests at all.
CREATE TABLE #Guests (checkin date, checkout date, FullName varchar(50), Gender...
January 31, 2013 at 10:11 am
I would ordinarily add an "Else 0" prior to the End in those case statements rather than the isnull function. Is there a performance difference, or just personal preference?
January 30, 2013 at 9:41 am
I am curious on the rule against temp tables. Is that in preference for work tables?
October 1, 2012 at 9:35 am
Viewing 15 posts - 31 through 45 (of 82 total)