Viewing 15 posts - 1,411 through 1,425 (of 3,348 total)
manie (1/9/2015)
I also think this is a pretty nifty way of dusting the brains a bit. I don't understand the -7. Can someone please explain this to me? :blush::blush::blush::blush::blush:
See my...
January 9, 2015 at 7:00 am
Got the answer by deduction and removing the obvious wrongs ones, but I do not like the question.
COUNT, as any other aggregate, ignores NULL values.
COUNT(*) is special. The * means...
January 7, 2015 at 12:24 pm
Good question.
Small addition to the explanation: the second option (UNION instead of UNION ALL) will actually reduce performance, because in addition to reading data from both tables, SQL Server now...
January 6, 2015 at 12:48 am
A nice and easy question, but the explanation is not fully correct.
Allthough Books Online does not explicitly document this (or I overlooked it), ISNUMERIC is a function that expects a...
January 6, 2015 at 12:45 am
Jeff Moden (12/28/2014)
Not undocumented but rather poorly documented.
The most relevant documentation beinig this one: http://support.microsoft.com/kb/287515: Execution Plan and Results of Aggregate Concatenation Queries Depend Upon Expression Location. This article from...
December 28, 2014 at 5:48 am
Lynn Pettis (12/26/2014)
Hugo Kornelis (12/26/2014)
(And technically, when the variable in declared but not initialised, the code will still "find" the stored procedures and functions with a name starting with sp_...
December 27, 2014 at 8:22 am
PHYData DBA (12/26/2014)
MHO: The IN operator and using the NOT qualifier with it are "NOT...
December 26, 2014 at 5:09 pm
For the nitp^H^H^H^H literelist, the question does not ask what other code needs to be present in order for this to work, just what it does.
(And technically, when the variable...
December 26, 2014 at 4:52 pm
Jamie-2229 (12/26/2014)
December 26, 2014 at 6:51 am
I picked the least incorrect answer and got my points. But the answer is still wrong. The more correct answer would be that it finds all stored procedures that start...
December 26, 2014 at 4:14 am
SQL-DBA-01 (12/26/2014)
Msg 208, Level 16, State 1, Procedure GetIt, Line 7
Invalid object name 'T'.
Msg 15165, Level 16, State 1, Procedure sp_recompile, Line 19
Could not find object 'T' or...
December 26, 2014 at 4:10 am
For those who, like me, had to spend more time than they are willing to admit to understand the logic, here is a breakdown.
- datediff(yy,-1,getdate()) --> The integer -1 is...
December 25, 2014 at 4:35 am
Viewing 15 posts - 1,411 through 1,425 (of 3,348 total)