Microsoft
Software
Hardware
Network
Question : Update Records based on previous updated record
it is possible to update a set of records sequentially, so that the value of record N+1 is based on the value of record N?
Let's say I have 100 records in table Test with columns: TestID and MyNumber
I would like to update all 100 records so that MyNumber is 1.05% greater than the value of the previous records' MyNumber value; so the results would be...
1 100
2 105
3 110.25 (thats 5% more than record 2's 105)
4 115.76 (that's 5% more than record 3's 110.25)
etc...
Can I do this without creating a cursor or loop? In one statement?
Answer : Update Records based on previous updated record
Hmmm...I always create separate log file backups. Why don't you like this? The reason is that it lets me put a time stamp on them, and in the event I need to restore them, its easy to determine the order I need to restore them in.
Random Solutions
z-index not working
Using CSS to Outdent a list of checkbox form elements in a table
asp.net My form is retaining a value in a TextBox once submited??
Is there a quick way to resize forms and controls?!
VLSM
Add WMI Query to Existing VBscript
How do I create an oval rectangular box with two colors as borders as shown in the attachment.
migrate file shares, data and permissions from server 2003 to 2008
how many users can connect to Vostro 230s SlimTower Genuine Windows 7 Professional?
turning dynamic URL's into Static URLs in ASP classic