Re: DB design basic question

From: MattC (m_at_m.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 09:39:33 -0000

You could make use the foreign key and then place a Constriant that the
column must be Unique.

MattC

"Francois" <francois@bettinghouses.com_NOSPAM> wrote in message
news:eYEaFhh%23EHA.3336@TK2MSFTNGP11.phx.gbl...
> 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
>
>



Relevant Pages

  • ANNOUNCE: Rose::DB::Object 0.50 released
    ... configurable map for convention manager classes. ... * Many bug fixes to datetime column methods, cross-database migration, ... and the legacy foreign key name generator. ... * Changed manager and query builder to default unprefixed ...
    (perl.dbi.users)
  • Re: full documentation for odbcconnection.getschema?
    ... And if it is a foreign key, ... Colbert Zhou ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Need help with SQL query involving a recursive query
    ... >> their name, total salary (including bonus), mobile phone number, ... >> The Emp_Num of an employee's manager is in the manager number ... I have to do it in one query. ... > Manager_Num cannot contain a Null and have a foreign key to Emp_Num ...
    (microsoft.public.access.queries)
  • Re: Normalizing Tree Data
    ... Is the next level always Employee? ... references from Employee to Manager, from Manager to Division, and from ... I'm not sure what you mean by foreign key references. ...
    (comp.databases.theory)