I'm being asked to update a existing set of databases, and as the current structure isn't at all very good I can start from scratch.
It is a audit type application and the way the current system works is that there is a database for unapproved and a database for approved, and all though the item's are moved from one database to the other their associated key is changed. ie its been made very clear which set they belong to.
This will be merged into one database but whats the best way to do this:
If I have just one table with a status field for the approval status, I would have to change the id, which would mean an ID that the user uses and an internal one used in the tables.
Or I could have two tables and move the data once it gets approved.
Whats the advantages/disadvantages either way?
It is a audit type application and the way the current system works is that there is a database for unapproved and a database for approved, and all though the item's are moved from one database to the other their associated key is changed. ie its been made very clear which set they belong to.
This will be merged into one database but whats the best way to do this:
If I have just one table with a status field for the approval status, I would have to change the id, which would mean an ID that the user uses and an internal one used in the tables.
Or I could have two tables and move the data once it gets approved.
Whats the advantages/disadvantages either way?