Suppose I have two tables, Customer and Vendor. I want to have a common address table for customer and vendor addresses. Customers and Vendors can both have one to many ad
can you redesign the table to have the following fields:
Address_Type (a flag to say that this is a customer, or a vendor)
ID (a common ID for both customer and vendor and depending on the flag you know what ID it is)
Address (Data of address itself)
or you can have two tables: