In a One to One relationship should i drop one of the table's id column?
Posted
by Vlad
on Stack Overflow
See other posts from Stack Overflow
or by Vlad
Published on 2010-06-16T09:51:42Z
Indexed on
2010/06/16
9:52 UTC
Read the original article
Hit count: 469
I have the following 2 tables in MySQL: Customer(Id, Firstname, Lastname...) Bonus(Id, CustomerId, Value, ...)
The relation is One-To-One, every customer has only one bonus.(the CustomerId is unique in the Bonus Table)
Q: Should I drop the Id column of the Bonus table? (I want to know why or why not)
© Stack Overflow or respective owner