Results 1 to 6 of 6
  1. #1
    blkane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    2

    Junction Table Help


    Hi, I'm a new-ish access user. I'm having trouble with designing where the junction tables are in many-many relationships. I am building a database that will take raw volume, calc revenue and generate invoices. There is no order entry. Volume is delivered in a simple table at the end of each month which I can import into the database. These are my critical elements.

    Customers
    Customer unit price (differs for each customer)
    Volume

    The thing that is tripping me up is price. If I had a consistent price across all customers, it would be simpler. How do I relate customer-volume-price when price varies by customer?

    I appreciate any input on this.

    Thank you,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The price is not included with the raw data? Are there multiple products involved? The data has a product ID?

    You can either manually enter the price info if it is not in the raw data, or maintain a table of customer prices that can be joined to the raw data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    blkane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    2
    There are multiple products. Each customer can have 1 or more products. Each customer has their own prices per product.

    I had thought about adding price into the raw data table as an option. It is the second option of adding a price table that I am trying to understand in my question. I don't know how to structure the required tables.

    The reason I was focusing on a table is that prices change annually. It seemed easier to drop in a new table rather than restructure the data load.

    Thank you

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Options are to save the price or an ID for the price record.

    What is structure of pricing table? Is there a record for each customer for each product?

    How do you want to edit the pricing table? Do you want to change the price in each record or do you want to enter new records for the new pricing?

    If you want to edit the existing records then MUST save price with raw data. If you add new records then option is to save the price or ID.

    How to populate a price/ID field in raw data table is another matter.

    If raw data and pricing tables both have customer and product ID's, then join the two tables.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    jony33 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    1

    Re: 420 Magazine Celebrates 20 Years of Creating Cannabis Awareness

    There is no order entry. Volume is delivered in a simple table at the end of each month which I can import into the database. These are my critical elements.

    _________________
    Mohsin

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Not sure what you are asking for. If you want to calculate unit price of a product across all customers, I guess you will have to calculate an average.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Junction Table\
    By Akitt23 in forum Access
    Replies: 5
    Last Post: 11-15-2013, 12:22 PM
  2. Junction Table
    By troachjr in forum Database Design
    Replies: 1
    Last Post: 03-08-2013, 02:10 AM
  3. Junction Table ?
    By KCC47 in forum Access
    Replies: 1
    Last Post: 02-19-2013, 10:19 AM
  4. Junction Table
    By snowboarder234 in forum Access
    Replies: 11
    Last Post: 04-18-2012, 09:31 AM
  5. Junction Table
    By mae3n in forum Database Design
    Replies: 2
    Last Post: 01-15-2011, 10:23 PM

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