Viewing 15 posts - 45,541 through 45,555 (of 59,095 total)
Gift Peddie (1/26/2009)
Update using the FROM clause violates JOINs are idempotent rule in relational algebra.
Heh... ummmm... so what? Cursors violate the whole idea of a database but they continue...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 5:53 pm
Thanks for the feedback, Tony. And, anyone who wants to learn more about how a Tally table works to replace some loops, here's a pretty good (heh... if I...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 5:50 pm
And, if you take a look at the following article, you'll find the "old fashioned way" actually has a bit of a performance edge over the PIVOT method...
[font="Arial Black"]Cross Tabs...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 5:47 pm
Actually... I take that back. They need to leave UPDATE FROM the heck alone so that we can still use the "Quirky Update" for "data smears" even if they...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 4:23 pm
GSquared (1/26/2009)
rog pike (1/26/2009)
Jeff Moden (1/26/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 4:21 pm
rog pike (1/26/2009)
Jeff Moden (1/26/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 4:19 pm
Man, sorry, Gus... :blush: I meant a "While Loop" for the count comparison, lost my mind, and said "Cursor" instead. A WHILE LOOP has about the same speed...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 12:33 pm
The proper way to do such a detection is similar to the following where '1D3' could be a column name...
[font="Courier New"] SELECT 1 AS IsAllDigits
WHERE '1D3' NOT LIKE...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 12:14 pm
Be careful... ISNUMERIC should never be used as an "IS ALL DIGITS" function... For example...
SELECT ISNUMERIC('1D3'), ISNUMERIC('1E3'), ISNUMERIC('1.3'), ISNUMERIC('-13')
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 12:11 pm
GSquared (1/26/2009)
Is that from when I told someone to stop using those on you, Jeff? Just last week, if I remember correctly.
Yes, Sir! And I have to tell...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:51 am
Lynn Pettis (1/26/2009)
Cardinal Moden is an excellent resource in the fight against RBAR. I must admit to having learned quite a bit from his excellent mentoring via SSC.
Dang, Lynn......
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:47 am
Sankar Reddy (1/26/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:37 am
GilaMonster (1/26/2009)
Jeff Moden (1/26/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:35 am
GilaMonster (1/26/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:29 am
As a side bar, I've finally discovered the true meaning of the acronym "CLR"...
[font="Arial Black"]C[/font]ursors, [font="Arial Black"]L[/font]oops, and other [font="Arial Black"]R[/font]BAR. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 11:28 am
Viewing 15 posts - 45,541 through 45,555 (of 59,095 total)