Viewing 15 posts - 3,901 through 3,915 (of 6,486 total)
mrpolecat (3/28/2008)
March 28, 2008 at 8:32 pm
dfalso (3/28/2008)
Matt Miller (3/28/2008)
Or....you could just use the NTILE function to achieve the same result...:)
You guys and your fancy SQL 2005 functions...:hehe:
That's a nice one. How's the performance vs. something...
March 28, 2008 at 1:31 pm
dfalso (3/28/2008)
Jeff Moden (3/28/2008)
Any code to go along with this "FWIW"? 😉
What, you want answers too? 🙂
Well, assuming you have an integer-ish rowid field on the table, MOD it by...
March 28, 2008 at 1:12 pm
Jeff Moden (3/28/2008)
Bad test, I think, Matt. You would never use 1 = NULL... not sure how that applies.
I'm drawing a comparison (or rather - highlighting the difference) between...
March 28, 2008 at 12:57 pm
Robert (3/28/2008)
Matt Miller (3/28/2008)
In the case of an un-indexed view, the view is never compiled on its own. The text of the VIEW gets inserted into the outer query...
March 28, 2008 at 12:48 pm
ACtually - I do find that EXISTS often enough works better.
It's a bit of a "it depends", but I tend towards EXISTS rather than IN unless the "IN"...
March 28, 2008 at 12:23 pm
Syed Mehroz Alam (3/28/2008)
Hi Robert,Like SQL server pre-compiles stored prodecures, does it also pre-compiles UDFs or views.
Regards,
Mehroz.
Actually - no. Not for views.
In the case of an un-indexed view,...
March 28, 2008 at 12:06 pm
peitech (3/28/2008)
Seems odd that it works fine with 'in' but doesn't with...
March 28, 2008 at 11:44 am
Lars Huttar (3/28/2008)
NOT(NULL = anything) AND NOT(NULL <>...
March 28, 2008 at 11:02 am
Keep in mind that "max" works against non-numeric values too.
The right "group by", would definitely handle it.
In 2005, you could use another approach as well.
SELECT A.ID,
...
March 28, 2008 at 10:32 am
Lars - the issue you seem to be hammering on stems from treating NULL as if it were a value. NULL is technically not a value, so any comparison...
March 28, 2008 at 10:12 am
Mike C (3/28/2008)
March 28, 2008 at 9:56 am
Jeff Moden (3/28/2008)
I normally don't work NULLs against "TRUE/FALSE" values even in WHERE clauses... I normally work them against some form...
March 28, 2008 at 9:31 am
Notice that what Grant and Piotr are both trying to improve on is the "lookup" part of the process.
That's because you can't use a single operation to insert...
March 28, 2008 at 9:15 am
I'd say you're right. IMO - it doesn't "buy" you anything to have multiple volumes in the same RAID set. Performance-wise, you haven't changed the number of spindles,...
March 28, 2008 at 8:54 am
Viewing 15 posts - 3,901 through 3,915 (of 6,486 total)