Viewing 15 posts - 50,566 through 50,580 (of 59,091 total)
Matt Marston (5/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 4:58 pm
benjamin.nelson06 (5/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 4:54 pm
srienstr (5/13/2008)
Jeff Moden (5/13/2008)
Why do you need a Cross-Join on the @DistinctQuarters table?
From my read of the code, it appeared to be storing (or intended to store) multiple time frames,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 4:24 pm
quortex (5/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 3:06 pm
srienstr (5/13/2008)
Don't bother with the loop at all, substitute in a join.
----Segment Level Supply
INSERT INTO @ConversionTesting(Quarter, Source, Segment, Metric,Value)
select Q.Quarter, 'Converted' as Source, MarketsegmenttypeCode, 'Inventory', sum(NumUnits)
from dbo.tbl_BldgSegments bs
...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 2:57 pm
Hawkeye67 (5/13/2008)
A great and most helpful article. Keep up the good work.
Thanks, Hawkeye. I appreciate the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 2:55 pm
developmentalmadness (5/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 9:36 am
dporter (5/13/2008)
I need to replace the text that relates to @QuarterEndDate somehow with your idea if possible, but Iām just not sure how to go about it.
Danielle...
Hard to tell because...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 9:27 am
Absolutely correct about the cross-join... change the 11,000 to 1,000,000 and see how fast it works.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 9:23 am
Thanks, David... real good to see that you're still around, too! š
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:43 am
You'll also find a lot of folks that suggest not using them because Microsoft could change them at any time... Heck, they do that with documented features :hehe:
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:39 am
Heh... I never use the first release of anything... not even from Peter š
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:37 am
Just DATEADD the two columns together and then do the simple math.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:19 am
The only thing that might beat the method in the article would be to maintain a separate table with a list of accounts and the current balance (1 row each)...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:14 am
quortex (5/13/2008)
have read the suggested article and although it is very informative it is geared towards calculating the total after the data is populated.
That's EXACTLY what you are doing...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 8:05 am
Viewing 15 posts - 50,566 through 50,580 (of 59,091 total)