September 4, 2006 at 3:43 pm
create table #demo (PK primary key clustered, Value int not null, RunningTotal int not null)
Insert into #demo (PK, value, RunningTotal) Select PK, value, 0 as runningTotal from dbo.BaseTable
UPDATE #demo....
Select PK, RunningTotal from #demo
DROP TABLE #demo
September 4, 2006 at 3:44 pm
Bingo!!
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2006 at 3:51 pm
No I understant why you say it's almost linear... quite a lot more than a simple select in that operation .
September 4, 2006 at 3:54 pm
True enough... you won't be making a view out of it, for sure
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2006 at 3:55 pm
By the way (drum roll, please), congrats on the more than 7000 posts you've made
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2006 at 9:49 pm
Thanx. Still about another 1000 to recatch steve and Antares .
September 4, 2006 at 11:10 pm
Alright... I've been looking for a while, now... how the heck do you submit a QOD on this forum?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 5, 2006 at 4:33 am
PM to Steve I think?!
September 5, 2006 at 4:49 am
Roger that... thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 5, 2006 at 4:51 am
Mark,
Remi and I got a bit carried away on a sidebar... are you all set or do you need additional help?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 5, 2006 at 5:03 am
Why am I included in this???
Like I would ever do something like that .
!
Viewing 11 posts - 16 through 25 (of 25 total)
You must be logged in to reply to this topic. Login to reply