I'm using MySQL. I have table with 3 fields: id, price, count. I need to write small billing system and I have faced with some problem. Example :
- User need the new computer. User writes price and count to the DB (e.g. 999, 1).
- Admin has ability to confirm this price or edit. If admin confirm this price and count i need to save user price and count and admin. Have I need to create duplicate fields(e.g confirmed_price, confirmed_count) and if admin has changed this price have I need to create changed_price and changed_count fields. In this variant table will have many 0 values and would anybody can recommend me another way of solving this problen