Viewing 15 posts - 46 through 60 (of 149 total)
I'm happy with the explanation, but feeling confused due to BOL:
After declaration, all variables are initialized as NULL, unless a value is provided as part of the declaration.
August 11, 2014 at 4:32 am
My point of view, assume things is never good enough. What if Microsoft decides to change the factory settings?
In my oppinion declaration is the perfect way to choose.
June 26, 2014 at 12:16 am
It would be better to define the collation. If it's case sensitive, then 'Tea' will not match 'tea'. 😛
June 25, 2014 at 12:39 am
Nice question!
But i can't get the purpose of this.
How can an unpredictable option be useful?:-D
April 3, 2014 at 6:13 am
Hmmm.
According to BOL 'not.funny' should be treated as a failure:
[ @newname = ] 'new_name'
Is the new name for the specified object. new_name must be a one-part name and must follow...
March 12, 2014 at 6:14 am
Instead of that:
invoiceitems.invoicetype,
sum(CASE WHEN invoiceitems.invoicetype = 'SCRN' THEN ABS(invoiceitems.homenettvalue) *-1
ELSE invoiceitems.homenettvalue END) as SumPrice,
sum(CASE WHEN invoiceitems.invoicetype = 'SCRN' THEN ABS(invoiceitems.homenettvalue) *-1
ELSE 0.00 END) as SumCredit,
sum(CASE WHEN invoiceitems.invoicetype = 'SCRN' THEN...
February 24, 2014 at 9:39 am
An easy task for 3 points! 🙂
We have learned to explicitly terminate each possible flow of the code.
January 9, 2014 at 12:29 am
SELECT
p.*
FROM
personnel p inner join
coordinators c on p.Office=c.Office_code
As you are seeking an employee of the coordinators table between all employees in the coordinators table, the second...
December 8, 2013 at 7:56 am
If i need a specific order i'll use ORDER BY. It's the clearest method to avoid future problems. 😎
December 2, 2013 at 12:24 am
Good question! Learned something. Parsing does not set initial values! 🙂
September 19, 2013 at 12:23 am
And why is BETWEEN checked regardless of the collation?
If lowercase characters sort ahead of uppercase ones, then 'B' is greater then 'd', and BETWEEN can't evaluate to TRUE! Like...
August 29, 2013 at 12:27 am
Viewing 15 posts - 46 through 60 (of 149 total)