Results 1 to 2 of 2
  1. #1
    pmregan is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    5

    Multiple many-to-many?

    Hi all,

    I'm rather new to Access, so I hope I can phrase my use case properly.



    I'm trying to build a simple requirements verification database, but I'm getting stuck when I try to set up my relationships between tables.

    I start with a table of customer requirements. Each requirement can have multiple compliance activities (e.g. test, analysis, inspection), and each compliance activity can have multiple requirements. This is easy enough with three tables ("requirements," "compliance," and a junction table).

    Here's where I get tripped up: each compliance activity is defined in one or more documents, which I have within a "documents" table. For example, I might have a "Mechanical Test" document, and an "Electrical Test" document. Going one step further, each document is comprised of multiple procedures, which I have (all; regardless of the final document where they'll wind up) in a "procedures" table.

    Can anyone help me define the relationships between these five tables? I'm getting totally lost with the many-to-many sides of things despite my best efforts to map stuff out! Do I need additional junction tables?

    Here's what I have set up so far:

    requirementsTBL
    requirementID (PK)
    requirement_text

    complianceTBL
    complianceID (PK)
    compliance_text

    reqt2compJTBL
    requirementID (PK)
    complianceID (PK)

    documentsTBL
    documentID (PK)
    document_title

    proceduresTBL
    procedureID (PK)
    procedure_text

    Relationships:
    requirementsTBL.requirementID <-> complianceTBL.requirementID
    requirementsTBL.complianceID <-> complianceTBL.complianceID

    I'm sure I need to elaborate/clarify, but thanks in advance to any initial help!

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    There are several Document related data models at this site.
    Not sure if any apply to your situation directly, but they may give you some ideas.

    http://www.databaseanswers.org/data_models/index.htm

    You may want to make some test data - samples for each of the proposed tables-
    and post that. It would certainly help the rest of us to understand your set up.

    You will help yourself greatly if you can identify some of your business rules/facts
    see http://www.databaseanswers.org/data_...tion/facts.htm

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

Similar Threads

  1. Update Multiple fields according multiple criterias
    By denis.m in forum Programming
    Replies: 1
    Last Post: 02-21-2011, 11:03 AM
  2. Replies: 4
    Last Post: 09-22-2010, 01:47 AM
  3. Replies: 2
    Last Post: 05-25-2010, 02:45 PM
  4. Replies: 5
    Last Post: 12-10-2009, 10:33 PM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 PM

Tags for this Thread

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