• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 470
  • Last Modified:

Access relate question

Hello All,

This is a follow up from this previous question:
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_28225339.html

I further found that…..
Each item can belong to several distribution pipelines (item 11234 can be sold to grocery, government)
Each distribution pipeline can have several items (in grocery pipeline, there are  10000 items sold)


Each distribution pipeline can have several tiers (grocery pipeline has 4 tiered cost – tier1,tier2,tier3,tier4 while government pipeline only has 2 tiered cost ( tier1,tier2)


Each tier can be contained in several distribution pipelines (grocery pipeline and government, both have tier1 bracket for items)

Please check the excel Structure for better idea……
Example data in current excel sheet is:

      grocery      government      airports
PRODuct_CODE      Tier1      Tier2      Tier3      Tier1      Tier2      Tier3      Tier4      Tier1      Tier2      Tier3      Tier4      Tier5      Tier6
p1      4                    4      5             6      1      1                           4


Sp please check the attached access file and let me know if my relationship making is correct?

Thank You
Rayne
Database2.zip
currentDataInExcel.xlsx
0
Rayne
Asked:
Rayne
  • 3
1 Solution
 
RayneAuthor Commented:
All Experts are welcome :)
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
So you have Items, Pipeline and Tier. Please comment on the statements below:

An Item can belong to one or more Pipelines.

An Item IN A SINGLE PIPELINE can belong to one or more Tiers.

An Item cannot belong to a Pipeline ONLY - it must belong to a Tier in that Pipeline (?)

A Tier belongs to a Pipeline (?)

====================

Assuming the above are correct, I would consider something like this:

tTier
--------
ID
TierName
etc

tPipeline
-------------
ID
PipelineName
etc

tItem
---------
ID
ItemName

Now the Join Table:

Since a Pipeline appears to the be the "top level" entity, you'd first need to join Pipeline and Tier:

tPipeline_Tier
----------------
ID
PipelineID
TierID

You'd then associate an Item with that Pipeline_Tier record, and you'd then also include the specifics of that item:

tItem_PipelineTier
-----------------
ID
ItemID
Pipeline_TierID
TierPrice
etc
0
 
RayneAuthor Commented:
So you have Items, Pipeline and Tier. Please comment on the statements below:

An Item can belong to one or more Pipelines. - YES

An Item IN A SINGLE PIPELINE can belong to one or more Tiers. - YES

An Item cannot belong to a Pipeline ONLY - it must belong to a Tier in that Pipeline (?)- YES

A Tier belongs to a Pipeline (?)-YES

This is awesome help, grand awakening in my thinking idea….. thank you LSMConsulting. I will follow up if further questions…
Thank you a million :)
0
 
RayneAuthor Commented:
Hello LCMConsulting,

If you are interested, here is a follow up
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_28311549.html
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now