Viewing 15 posts - 3,316 through 3,330 (of 15,381 total)
deebabat (2/4/2015)
February 4, 2015 at 8:45 am
djj (2/4/2015)
So I guess my question is what is the proper way to join one table on itself to get data from two different rows then divide the data?
That depends...
February 4, 2015 at 8:42 am
Please tell me this isn't something you plan on doing on a regular basis. The performance of something like this is going to be horrendous. If this is just analysis...
February 4, 2015 at 8:14 am
djj (2/4/2015)
The code...
February 4, 2015 at 8:01 am
richxs (2/4/2015)
I generally use ID if it represents a generated surrogate key, but if the key is a 'real' thing such as an employee ID then I would use employeeID.
So...
February 4, 2015 at 7:27 am
andycadley (2/4/2015)
dmcquade (2/3/2015)
Is there a downside to using the IsNULL function? For example, using the COUNT script when I try:SELECT COUNT(IsNULL([Name], ''))
I get 8 as the result
It'll probably be slower...
February 4, 2015 at 7:24 am
CELKO (2/2/2015)
And thanks to your bad...
February 2, 2015 at 1:44 pm
ChrisM@home (2/2/2015)
Jeff Moden (2/2/2015)
February 2, 2015 at 1:13 pm
K2mission (2/2/2015)
February 2, 2015 at 12:34 pm
DonlSimpson (1/30/2015)
mark.finch (1/30/2015)
and what about Count(0) ? Is that the same result as Count(1)?
ANY literal value, or non-column name value, acts exactly the same as count(*).
select count(*) from myTable...
January 30, 2015 at 3:42 pm
SQLMaister (1/30/2015)
Like I said, there are many ways to answer it,...
January 30, 2015 at 3:24 pm
Steve_Wechsler (1/30/2015)
January 30, 2015 at 2:53 pm
SQLMaister (1/30/2015)
Okay, now I want to see a reference where they state that COUNT(1) is better or preferred...
Syntax
COUNT...
January 30, 2015 at 2:51 pm
Steve_Wechsler (1/30/2015)
January 30, 2015 at 2:06 pm
SQLMaister (1/30/2015)
January 30, 2015 at 2:04 pm
Viewing 15 posts - 3,316 through 3,330 (of 15,381 total)