Viewing 15 posts - 44,746 through 44,760 (of 59,095 total)
I recently went through such a thing... for the second time...
It was simply "bad" code where a developer didn't understand the relationship between a few tables and created what amounts...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 2:07 pm
Actually, in SQL Server 2k5, we don't need to solve the running total problem for this because it's just a ranking problem... this should do it...
;WITH
cteGroup AS
(
SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 12:38 pm
And, sorry... the running total article I wrote is in the process of being rewritten.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 12:23 pm
Bob Hovious (3/7/2009)
I do it strictly in self-defense.
BWAA-HAA!!! Me too! Let's get together and burn some ISO's sometime! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 11:41 am
Steve Jones - Editor (3/7/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 11:34 am
Bob Hovious (3/7/2009)
By an odd coincidence, I just did that. It doesn't seem to make a significant difference.
I just knew you would... that's one of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 10:41 am
Roy Ernest (3/7/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 10:35 am
Lynn Pettis (3/6/2009)
Of course, there are areas where egos are strong, RBAR solutions for one (right Jeff!).
Heh... no ego there... I let the code do the talking, as all should.
Funny...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 10:34 am
Bob Hovious (3/6/2009)
a WHILE loop may actually perform better than a Tally table on function like these
Jeff, do you know if the size of the tally table make any...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 9:06 am
Bob Hovious (3/6/2009)
As a former attorney...
Heh... now I know where you get that wonderful sense of humor... 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2009 at 7:35 am
So, Narendra... are you all set?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2009 at 10:43 pm
qzhu (2/5/2009)
So how should I define my format file to define the column header corretcly? Is there a way to do that?
There is a nasty little fault in BCP...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2009 at 10:41 pm
Shuaib (3/6/2009)
Thanks lot for you info.I also found the Numbers table details.
If you want to know how a Numbers or Tally table actually works to get jobs like these done,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2009 at 10:31 pm
robert.mason (3/6/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2009 at 10:23 pm
metro17 (3/6/2009)
AS totalamount
FROM MYTABLE
GROUP BY MYDATE, DATENAME(mm, MYDATE)
ORDER BY MYDATE, DATENAME(mm, MYDATE)
year month totalnumber totalamount
2004-08-26 10:39:00 August 2199...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2009 at 10:14 pm
Viewing 15 posts - 44,746 through 44,760 (of 59,095 total)