I have verious accounts which need to be kept track of. These accounts are all very similar having fields such as:
account_number, date_opened, current_expenditure etc.
Now, these accounts are of three types (we'll call them Type A, B, C) Each of these account types requires at least one other field, unique to it's type. For example:
Type A: account_number, date_opened, current_expenditure, owner
Type B: account_number, date_opened, current_expenditure, location
Type C: account_number, date_opened, current_expenditure, currency
My question is whether or not I should combine these into one large table, with a column denoting account type (leaving irrelevant fields empty):
Table 1: accounts
Table 2: accts_emp_maps
Account Columns:
account_number, type, date_opened, current_expenditure, owner, location, currency
Or, should I have an individual table for each account type? Keep in mind that there will be other tables mapping employees to these accounts. If I split up the accounts into different types, I will need to split the maps as well. IE:
Table 1: A_accounts
Table 2: A_accts_emp_maps
Table 3: B_accounts
Table 4: B_accts_emp_maps
Table 5: C_accounts
Table 6: C_accts_emp_maps