Results 1 to 3 of 3
  1. #1
    Mtyetti is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    8

    Many to Many or One to Many?

    Quick question on database relationships.



    I have a pilot database I am creating. For each flight that is flown, there are 2 employees (pilots) assigned to the flight. My 'Event' table which represents the flight, has 2 employee fields. One for 'Captain, and one for Co-captain. I want both of these fields to pull employees from the same employee table. Would this technically be a Many to Many relationship because I have many employees that can fly many events. Or is it a One to Many because only one employee can be a Captain for many events? (and only one co-captain per event)

    Hope this makes sense.

    Thanks for the help!
    Scott

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    One to many, because an employee will only be present once in the employee table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    By the way, a normalization case could be made for a separate table to hold the pilots. In a sense you have employee1 and employee2. That said, it isn't clear cut and if there will always be the 2 I might leave it as is.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums