Hello
Using SQL 2000
If I have the following sample data:
Date Quantity In Quantity Out
200801 100 0
200802 100 100
200803 500 200
200804 300 200
200805 400 400
At day 1 the stock is 0
Then we get stock in and move stock out
How do I create a view that shows Date, Starting Balance,
Quantity In, Quantity Out
e.g.
Date Starting Balance Quantity In Quantity Out
200801 0 100 0
200802 100 100 100
200803 100 300 200
200804 200 300 200
200805 300 400 400
etc...
Thanks
Damian.
Using SQL 2000
If I have the following sample data:
Date Quantity In Quantity Out
200801 100 0
200802 100 100
200803 500 200
200804 300 200
200805 400 400
At day 1 the stock is 0
Then we get stock in and move stock out
How do I create a view that shows Date, Starting Balance,
Quantity In, Quantity Out
e.g.
Date Starting Balance Quantity In Quantity Out
200801 0 100 0
200802 100 100 100
200803 100 300 200
200804 200 300 200
200805 300 400 400
etc...
Thanks
Damian.