M
Martin Schmid
I have a table of values... i.e.
[id, qty, price]
I can create a view with an amount, i.e...
[id, qty, price, qty*price]
I want another column that maintains the balance... i.e.
[id, qty, price, qty*price, balance]
A little more info... this is for a stock trading simulation. The initial
balance will be $100,000... each trade needs to decrement (for a BUY) or
increment (for a SELL) the balance. I could maintain a balance table, and
utilize triggers... however, I'd like to show the cumulative effects of each
buy/sell on a report based on the view.
I am using MSDE and VC.Net 7 to create a Web-application.
Thanks for any insight.
[id, qty, price]
I can create a view with an amount, i.e...
[id, qty, price, qty*price]
I want another column that maintains the balance... i.e.
[id, qty, price, qty*price, balance]
A little more info... this is for a stock trading simulation. The initial
balance will be $100,000... each trade needs to decrement (for a BUY) or
increment (for a SELL) the balance. I could maintain a balance table, and
utilize triggers... however, I'd like to show the cumulative effects of each
buy/sell on a report based on the view.
I am using MSDE and VC.Net 7 to create a Web-application.
Thanks for any insight.