Should these be 3 SQL tables or one?
问题 This is a new question which arose out of this question Due to answers, the nature of the question changed, so I think posting a new one is ok(?). You can see my original DB design below. I have 3 tables, and now I need a query to get all the records for a specific user for running_balances calculations. Transactions are between users, like mutual credit. So units get swapped between users. Inventarizations are physical stuff brought into the system; a user gets units for this. Consumations