Table 1 contains
State codes - Text - 2chr - Indexed - No Duplicates
State names - Text
Table 2 contains
State Codes - text - 2 chr - Indexed - Duplicates OK
City Codes - Numeric - Indexed - Duplicates OK - Format 000
City Name - text
Table 3 contains
Branch Code - Numeric - Indexed - Duplicates OK - Format 000
the mix of the 3 should be unique
There is only 1 Branch 001 in City 001 in State NY
There is only 1 Branch 002 in City 001 in State NY
There is only 1 Branch 001 in City 002 in State NY
What fields should I put in table 3 and what relations should I build between the tables to have referential integrity.
When I update/delete a state, it should propagate to cities in the state and branches in the city of the state.
Until now I used only relations between 2 tables, so I am a bit lost
Thank You
State codes - Text - 2chr - Indexed - No Duplicates
State names - Text
Table 2 contains
State Codes - text - 2 chr - Indexed - Duplicates OK
City Codes - Numeric - Indexed - Duplicates OK - Format 000
City Name - text
Table 3 contains
Branch Code - Numeric - Indexed - Duplicates OK - Format 000
the mix of the 3 should be unique
There is only 1 Branch 001 in City 001 in State NY
There is only 1 Branch 002 in City 001 in State NY
There is only 1 Branch 001 in City 002 in State NY
What fields should I put in table 3 and what relations should I build between the tables to have referential integrity.
When I update/delete a state, it should propagate to cities in the state and branches in the city of the state.
Until now I used only relations between 2 tables, so I am a bit lost
Thank You