Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
anaylor01
Starting Member
28 Posts |
Posted - 2006-04-16 : 11:14:27
|
| I have two tables. ID table that has these fieldsCode_id,YearPeriod, ReachedDate fields. And tableAmount that has Code_id,Amount,Date fields. What Ineed to do is write a cursor that when theamount.Amount adds up to $100.00 it Updates theReachedDate in the ID table to the amount.date fieldsvalue of that record. Any help would be greatly appreciated. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
mmarovic
Aged Yak Warrior
518 Posts |
Posted - 2006-04-16 : 13:21:47
|
| http://www.sql-server-performance.com/mm_cursor_friendly_problem.asp |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-04-17 : 02:41:12
|
| Where do you want to show the data?You dont need to update the column with running total. If you use Reports, make use of its running total featureMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|