Results 1 to 5 of 5
  1. #1
    Jabirali is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2012
    Posts
    3

    Relating Tables

    Dear All,
    I am new to database design.


    Please help me to relate/redesign the following tables.

    I am trying to create a simple warehouse database. The items will be stored in different warehouses.These items are for different projects(each project has subprojects too). The items are received in huge boxes (One box may contain different items for different projects).

    The objective is to track which items are in which warehouse and in which boxes and tobe queried project wise too.

    The Tables are

    tableitem
    Itemcode
    ItemName
    ItemDesc
    ItemDate
    Qty
    Warehouseid
    Boxid
    projectid

    tableProject
    ProjectId
    ProjectName
    ProjectSub

    I am confused whether i should create tables for WAREHOUSE and BOX.

    Please help

  2. #2
    HMEpartsmanager is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    85
    Off the cuff here, but I think you would want a Warehouse table and a Box table. Warehouse table can have the different warehouses you have. The Box table can have the different items that came in the box. I am assuming that a Box will have many item codes in that box. Then you can link the these tables with the 2 tables you propose above. It seems appropriate.

    BOX has ITEMS for PROJECT and these are stored in different WAREHOUSES.

    The only other thing I see that could be another table is the SubProject. Not knowing your data, your PROJECTS could have many SUBPROJECTS.

    Some friendly suggestions.

    Tim

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848

  4. #4
    sjs94704 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Berkeley, CA
    Posts
    20
    Here is my suggestion of the tables you should start with on your project. You should learn all you can about linking Primary Key fields to foreign key fields so you can establish your proper relationships between these tables. Once you have accomplished that step you can begin building your forms for the data entry. Be careful !! With you suggested goal of tracking multiple items in multiple warehouses for multiple projects, things can very easily start to get a bit crazy.

    ItemT

    ItemID
    DateEntered
    ItemDecription

    ItemTransactionT
    ItemTransactionID
    ItemTransactionDate
    ItemID
    ProjectID
    SubProjectID
    WarehouseID
    Quantity

    ProjectT
    ProjectID
    ProjectName

    SubProjectT
    SubProjectID
    ProjectID
    SubProjectName

    WarehouseT
    WarehouseID
    WarehouseName
    Address1
    Address2
    City
    State
    ZIP

  5. #5
    Jabirali is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2012
    Posts
    3
    Thank u very much for your replies. SJS, Tim & orange, I will begin with the ideas and structure you have given. Linking the tables is a problem right now, anyway I am learning.
    My Tables based upon your Tips will be

    Table Item

    Itemcode
    ItemName
    ItemDesc
    ItemDate
    Qty
    Warehouseid
    Boxid
    projectid

    ProjectTable
    Pro
    jectID
    ProjectName
    SubProject Name
    Itemcode


    WarehouseT
    WarehouseID
    WarehouseName
    ItemCode
    BoxId

    BoxT
    Boxid
    BoxNumber
    ItemCode
    ProjectID

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

Similar Threads

  1. Need help relating tables
    By LeahJB in forum Database Design
    Replies: 4
    Last Post: 02-15-2012, 08:37 AM
  2. Still struggling with relating tables
    By djclntn in forum Database Design
    Replies: 31
    Last Post: 02-14-2012, 02:08 PM
  3. Might someone help with relating some Tables?
    By djclntn in forum Database Design
    Replies: 20
    Last Post: 02-08-2012, 11:35 AM
  4. Replies: 12
    Last Post: 06-14-2011, 01:42 PM
  5. Relating 2 Tables - Relational Problem
    By jeng in forum Database Design
    Replies: 5
    Last Post: 04-01-2010, 09:25 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