RE: DB design basic question
From: Ibrahim Shameeque (IbrahimShameeque_at_discussions.microsoft.com)
Date: 01/14/05
- Next message: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Previous message: MattC: "Re: DB design basic question"
- In reply to: Francois: "DB design basic question"
- Next in thread: Francois: "Re: DB design basic question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 Jan 2005 01:53:06 -0800
You can define a One-To-one relationship just by including the manager table
id to the deparment table.
If you like to define a relationship then both related columns should be
primary keys or have unique constraints
"Francois" wrote:
> Hi,
>
> I would like to know how i can relate 2 tables knowing that their relation
> is a one-to-one relationship.
> It is something like: A department HAS A manager.
> Department and manager have different PK and then I cannot have the table
> sharing to same PK to model my one-to-one relationship.
> But if i just use a foreign key, then it will make a one-to-many
> relationship, then how can I solve my problem?
>
> Best regards,
>
> Francois
>
>
>
- Next message: Ibrahim Shameeque: "RE: A query where two tables are linked to the same another table"
- Previous message: MattC: "Re: DB design basic question"
- In reply to: Francois: "DB design basic question"
- Next in thread: Francois: "Re: DB design basic question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|