TimothyTan
MIS
If my OLTP table is based on transactional model, how do i implement my fact table.
For example,
Below shows the simplified OLTP table. In addition to credit and debit, 'deletion' of a transaction is possible.
ID Date TransactionType Amount RefID
001 28/11/03 Credit $100 null
002 01/12/03 Delete $100 001
How do i ensure that the total amount is correct?
Should i just change the sign of the delete record to -ve?
For example,
Below shows the simplified OLTP table. In addition to credit and debit, 'deletion' of a transaction is possible.
ID Date TransactionType Amount RefID
001 28/11/03 Credit $100 null
002 01/12/03 Delete $100 001
How do i ensure that the total amount is correct?
Should i just change the sign of the delete record to -ve?