I'm new in programming. I'm designing a database that has two tables: Addresses and Customers. I don't know how to assign foreign keys. I don't know which way is better to use:
Method1:
Customer Table Columns:
CustomerID FirstName LastName Address ID
Addresses Table Columns:
AddressId Country State City AddressLine
Method2
Customer Table:
CustomerId FirstName LastName
Addresses Table:
AddressId CustomerId Country City AddressLine
In other words I don't know where to place the foreign key.