Solved

Access relate question

Posted on 2013-11-05
4
411 Views
Last Modified: 2013-12-05
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
Comment
Question by:Rayne
  • 3
4 Comments
 

Author Comment

by:Rayne
ID: 39626595
All Experts are welcome :)
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39627014
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
 

Author Comment

by:Rayne
ID: 39627794
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
 

Author Comment

by:Rayne
ID: 39699343
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now