I have two tables: Customer and Vendor, both of which need to contain
address information. Assuming the Address info contains Address-1,
City, State, Zip, is it better to have these fields defined in
Customer and Vendor, or should Address be a separate table, with a
one-to-one relationship to each of the Customer and Vendor tables?
If the second were the preferred method, then it might look like:
Customer Vendor Address
-------------- ---------------- ---------------
Cust_id Vend_id Addr_id
Parent_id FK
... ... ...
I am using identity columns as the primary key. I would then need to
insure that Parent_id was unique among the Customer and Vendor tables
(each of their identities must be unique). This sounds too
complicated. Help. What is the proper way to do this?