Results 1 to 2 of 2
  1. #1
    F0u4d is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    1

    Little help in my database structure

    Hello there,

    I recently started learning Microsoft Access.


    I'm trying to create a database for a restaurant to control the cost

    What i need in my database:
    - Products table for products name, id, category..
    - Every product contains ingredients from ingredients table with amount of KG, G, ...
    - Ingredients table contains ingredients name, id..
    - Category table to put the products into categories, Sandwiches, Platters, ...

    What i am stuck at is that i don't know how i can link the ingredients into products and add multiple ingredients to 1 product

    I would appreciate if someone could help me in the relationships and the structure of my database

    Thank you in advance

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Maybe a junction table inbetween your two tables?

    That way every new junction ID created can source many ingredients to one product

    so ID 1 can have 2 & 1
    ID 2 can have 3 & 1
    ID 3 can have 4 & 1

    then when you look at ID 1 (the product, you have 2,3 and 4 ingredients linked to it)

    This is called a many-to-many relationship

    There are others but I will wait to see what June or ItsMe say as they are better at giving advice and I'm curious with what they go with.

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

Similar Threads

  1. Question on how to structure a database
    By ExterminatorJeff in forum Database Design
    Replies: 3
    Last Post: 03-17-2012, 06:34 AM
  2. Database Structure Advice
    By Douglasrac in forum Access
    Replies: 9
    Last Post: 07-16-2011, 07:14 PM
  3. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  4. Help with Database Structure
    By scottay in forum Access
    Replies: 8
    Last Post: 06-30-2010, 08:16 AM
  5. database structure:primary key debate
    By MUKUDU99 in forum Database Design
    Replies: 0
    Last Post: 08-19-2008, 12:20 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