Viewing 15 posts - 51,136 through 51,150 (of 59,098 total)
Heh... you started it... was hoping you had some final code 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 11:42 am
Ooohhh... not good. Just wait till you try a bunch of inserts that are close to each other for the cSpecialty column... it's a 4 letter word... WAIT....
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 11:40 am
Sorry, Gus... we're posting in parallel...
The -1 addition will work but I think the tweek needs to be extended to the days column, as well.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 11:33 am
GSquared (4/14/2008)
declare @D1 datetime, @D2 datetime
select @d1 = '02/Nov/06 9:14:21 AM', @d2 = '19/Apr/07 11:52:31 AM'
select datepart(year, @d2-@d1)-1900...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 11:31 am
Matt Miller (4/14/2008)
Jeff Moden (4/14/2008)
I wonder which would work more quickly? I think the CLR might win this one because it uses implicit functions...
As of right now - "straight...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:51 am
antonio.collins (4/14/2008)
LEAD()/LAG() give access to next/prior rows in an ordered set without needing a self join.http://www.oracle-base.com/articles/misc/LagLeadAnalyticFunctions.php
Thanks, Antonio.
Heh... "Ordered Sets" in an RDBMS... I use them a fair bit but what...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:44 am
Temp table???? What temp table????
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:35 am
Greg... stupid question on my part, but have you tried using RTRIM to get rid of the trailing spaces?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:35 am
TheSQLGuru (4/14/2008)
On a side note, I personally despise views!! As a consultant they REALLY confound my efforts to examine/tune my client's queries!
Hear here! I second that... wasn't going...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:31 am
David.Mizelle (4/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:28 am
david.buncle (4/14/2008)
TEST? This datatype isn't recognised for SQL Server 2000... Did you mean TEXT?, if so this is invalid for a local variable.
... and, although you can't declare a local...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:24 am
david.buncle (4/14/2008)
TEST? This datatype isn't recognised for SQL Server 2000... Did you mean TEXT?, if so this is invalid for a local variable.
Yes... TEXT... coffee deprivation while typing. Thank...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:23 am
Derek Dongray (4/14/2008)
Both Jeff's and Peso's queries do not eliminate pairs where the status stays the same.
Sorry... with all the other stuff, I missed that requirement altogether.
Additionally, as Peso...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 10:22 am
I wonder which would work more quickly? I think the CLR might win this one because it uses implicit functions...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 9:54 am
GilaMonster (4/14/2008)
CREATE TRIGGER On_Delete
ON tblActivityArchive
AFTER DELETE
AS
BEGIN...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 9:49 am
Viewing 15 posts - 51,136 through 51,150 (of 59,098 total)