Viewing 9 posts - 1 through 9 (of 9 total)
Actually it's OK. The records go into the table in the proper order so when I do a simple select without an "order by" clause, they come back in the...
January 24, 2013 at 10:15 am
Sean Lange (11/27/2012)
leesider (11/27/2012)
November 27, 2012 at 8:25 am
OK, as I said in my last post I need to extend it a little further to include a running total. Cadavre is correct, I don't need a cursor. ...
November 27, 2012 at 2:42 am
Sean Lange (11/26/2012)
For example, 2012-04-03 is in the fifteenth week of the year so if that date appears then the week number 15 should appear...
November 26, 2012 at 10:41 am
Cadavre (11/26/2012)
leesider (11/26/2012)
I am going to need a cursor, I just don't know how to detect when a year or month datepart changes from date to date.
No cursor required.
Try this:...
November 26, 2012 at 9:57 am
Silly me, I am able to work around it by right-clicking and selecting "Script Stored procedure as" and then "Alter to".
Don't know why modify is doing that but the above...
June 27, 2012 at 7:38 am
anthony.green (6/6/2012)
declare @tab1 table (year int, week int, total_savings decimal(36,18))
declare @tab2 table (year int, week int, total_savings decimal(36,18))
insert into @tab1 (year, week, total_savings) values
(2012,...
June 6, 2012 at 4:23 am
okbangas (6/6/2012)
select t1.total_savings+t2.total_savings as total_savings
from
t1 inner join
t2 on t1.year = t2.year and t1.week = t2.week
My apologies, I didn't make myself clear. The above query...
June 6, 2012 at 4:02 am
Viewing 9 posts - 1 through 9 (of 9 total)