alfredo245
Registered User.
- Local time
- Today, 08:06
- Joined
- Jan 29, 2015
- Messages
- 15
Hi Experts,
I have a quick question. I am building a Database for work (I work in a bank). So far, the database consist of the following tables:
[FONT="]- [/FONT]tbl_Sales Rep
[FONT="]- [/FONT]tbl_Client
[FONT="]- [/FONT]tbl_Accounts (this could be considered “Products” table)
[FONT="]- [/FONT]tbl_transactions (this could be considered the “orders” table)
Each client should have a Unique Sales Rep. However; there are instances when an account has 2 different Client IDs. For example, a joint saving account (acct id 0558) might look like this:
Client ID | Account ID
123 | 0558
185 | 0558
In those cases, both clients, Client 123 and 185 should have the same Sales Rep. assigned. So my question is; how can ensure that the user of the database would not assign two different Sales Rep IDs to each of those clients IDs when they have joint accounts like the one described above?
I have been watching some videos online and I think a junction table is the answer, but I am still unsure. Please advice. Thanks a lot!
I have a quick question. I am building a Database for work (I work in a bank). So far, the database consist of the following tables:
[FONT="]- [/FONT]tbl_Sales Rep
[FONT="]- [/FONT]tbl_Client
[FONT="]- [/FONT]tbl_Accounts (this could be considered “Products” table)
[FONT="]- [/FONT]tbl_transactions (this could be considered the “orders” table)
Each client should have a Unique Sales Rep. However; there are instances when an account has 2 different Client IDs. For example, a joint saving account (acct id 0558) might look like this:
Client ID | Account ID
123 | 0558
185 | 0558
In those cases, both clients, Client 123 and 185 should have the same Sales Rep. assigned. So my question is; how can ensure that the user of the database would not assign two different Sales Rep IDs to each of those clients IDs when they have joint accounts like the one described above?
I have been watching some videos online and I think a junction table is the answer, but I am still unsure. Please advice. Thanks a lot!