Results 1 to 2 of 2
  1. #1
    Sebbers is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    3

    Many to Many relationship ???

    Hi,

    Fairly new to database design so here goes with my attempt to design a membership database:

    The business rules are as follows:

    1) A product must have 1 or more fees but not all products have the same fees:
    1.1) A "7-Day Adult membership" (product) member pays a 7-Day Adult subscription fee, insurance fee, union fee and a catering fee.
    1.2) A "7-Day Child membership" (product) pays a 7-Day Child subscription fee, insurance fee and a union fee.

    PRODUCT Table
    ProductID ProductName
    1 7-Day Adult Membership
    2 7-Day Child Membership

    FEE Table
    FeeID FeeName
    1 7-Day Adult Membership Subscription Fee
    2 7-Day Child Membership Subscription Fee


    3 Insurance Fee
    4 Union Fee
    5 Catering Fee

    PRODUCTFEES Table
    ProductID FeeID1 1
    1 3
    1 4
    1 5
    2 2
    2 3
    2 4

    When we assign a product to a member, I insert the corresponding product into a MEMBERPRODUCTS Table (a member can have more than 1 product - ie a locker) but not sure if this is the right way to do this. I am also contemplating on inserting the corresponding fees for each product into a MEMBERPRODUCTFEES table but again not sure if this is the right way to go about this.

    My dilemna is the following:
    The Club may, from time to time, want to charge a joining fee for new members (but we don't want to charge the existing members).
    If I add the joining fee to the FEE Table, it doesn't really have an associated product and therefore my many-to-many relationship does not work. Ideally, it needs to be in the MEMBERPRODUCTFEES table, this way I can pick and choose which members get charged this fee.

    I'm probably over-complicating things but would welcome some guidance.

    Many thanks.

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    I really have a lot of difficulty reading all uppercase. I know others do as well. Something to do with getting old I guess.

    Table Names should be preceded with tbl. eg tblProducts, tblMembers.

    This is nit picking I know. But if you were to fix this people might find it easier to read your question. If you do some searching you should find some "Naming Conventions" If you can't then post back and I will send you mine.

    The keeping of pervious fees charged can become involved, depending on what you want to do. I see this as your main issue not the Many to Many problem.

    Can you explain in plain English the rules to keeping payment history.

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

Similar Threads

  1. One to Many relationship
    By ramindya in forum Access
    Replies: 4
    Last Post: 02-10-2012, 01:59 PM
  2. relationship
    By slimjen in forum Forms
    Replies: 1
    Last Post: 09-26-2011, 07:15 PM
  3. One to one relationship
    By anemoskkk in forum Access
    Replies: 1
    Last Post: 04-13-2011, 12:05 PM
  4. Relationship
    By ClownKiller in forum Database Design
    Replies: 13
    Last Post: 12-21-2010, 05:49 PM
  5. MAY TO MANY RELATIONSHIP
    By fadone in forum Database Design
    Replies: 2
    Last Post: 12-20-2005, 09:03 AM

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