Hello Chaps,
Bit of a simple one here, but thought I would ask it just to get a little clarification on how 'best' to do this. Say I have two tables which are meant to have a 1 to 1 relatioship, which table should carry the FK referance? For instance, say I have a user, and that you has a profile.
User
-----
User_ID
Created
Updated
Email
Telephone
Profile
-------
Profile_ID
FirstName
MiddleName
LastName
ChartColour
MaritalStatus
ImagePath
Which one of those tables should have the Fk column? should the profile have a User_ID column? or should the user have a Profile_ID column?
I know that it could be worked iether way in a query so logicaly I cant see any reason for one choice over the other, but thought i'd come here and ask your thoughts and explanations.
Thanks,
Rob
Bit of a simple one here, but thought I would ask it just to get a little clarification on how 'best' to do this. Say I have two tables which are meant to have a 1 to 1 relatioship, which table should carry the FK referance? For instance, say I have a user, and that you has a profile.
User
-----
User_ID
Created
Updated
Telephone
Profile
-------
Profile_ID
FirstName
MiddleName
LastName
ChartColour
MaritalStatus
ImagePath
Which one of those tables should have the Fk column? should the profile have a User_ID column? or should the user have a Profile_ID column?
I know that it could be worked iether way in a query so logicaly I cant see any reason for one choice over the other, but thought i'd come here and ask your thoughts and explanations.
Thanks,
Rob