Is this a good way to model address information in a relational database?

前端 未结 7 2037
走了就别回头了
走了就别回头了 2020-12-02 09:35

I\'m wondering if this is a good design. I have a number of tables that require address information (e.g. street, post code/zip, country, fax, email). Sometimes the same a

7条回答
  •  萌比男神i
    2020-12-02 10:15

    Do you want to keep a historical record of what address was originally on the purchase order?

    If yes go with option 1, otherwise store it in the supplier table and link each purchase order to the supplier.

    BTW: A sure sign of a poor DB design is the need for an automated job to keep the data "cleaned up" or in synch. Option 2 is likely a bad idea by that measure

提交回复
热议问题