Share via

Table structure for addresses

Anonymous
2018-02-05T23:41:24+00:00

Hi there, I currently have a table of customers. A customer can have  two different addresses, mailing and physically address. I want to ask your advice on how to structure the address information. All customers will have both a physical and a mailing address filled in. Most of the time, both addresses are the same, but there are a few occasions where the mailing address is different. My current table has both types of address all on the customer table. Is this ok to do or should I have a separate table for addresses and a join table for the two types of address?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-02-06T03:20:45+00:00

I just want to make sure you have the same understanding as me of the setup

Customer_Addresses


AddressId

CustomerId

AddressTypeId

Number

Street

Unit

CityId

...

AddressTypes


AddressTypeId

AddressType

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-02-06T03:51:53+00:00

    What would i do if the mailing address os the same as the physical afdress?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-02-06T03:37:06+00:00

    Yes Dan, that is what I have in mind if having to create the address tables. Thank you.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-02-06T03:13:35+00:00

    Thank u, Dan. Part of me knew that is the right practice, and part of me is trying to avoid having to create two more tables just for addresses since both addresses will always be completed  for each customer.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-02-06T01:26:39+00:00

    I'd created a new Addresses table with all the address fields, plus one to indicate the type of address, with a foreign key relating to the customers table.

    You could even have a flag for mailing address is the same as the physical address.

    Was this answer helpful?

    0 comments No comments