Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008

    Unanswered: relations between tables - is this ok ?

    I have tables:

    id_employees PK
    id_departments FK

    id_departments PK

    Relation: DEPARTMENTS id_departments (1) to EMPLOYEES id_departments (many).

    And now I want to create table CRASHES - ONLY 1 employee (boss) can report many computer crashes and ONLY 1 employee (engineer) can repair many computers. How can I make this table and relations ?

    I have made it:

    id_crashes PK
    id_boss FK
    id_engineer FK

    Relation: CRASHES id_boss (1) to EMPLOYEES id_employees (many) AND CRASHES id_engineer (1) to EMPLOYEES id_employees (many)

    Is this ok ??????

  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    >Is this ok ??????
    It is OK by me for most values of OK.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Dec 2008
    thx you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts