T
theseandavis
Hello,
I would like to bring two tables together.
The first table contains 5 columns. Let's call them:
Car Type || Job Type || FPA || Part Code || Part Description ||
Quantity
The second table contains 4 columns:
Car Type || Job Type || Part Code || Part Description
What I would like to do is use the first set of data as a base. It
lists every car type with every job type, and then three scenarios
(either F, P, or A[Forecast, Planned, Actual]) to show each Part Code
and Part Description, and the Quantity of Parts. For example:
Volvo || Brakes || F || 123 || Brake Pads || 4
Volvo || Brakes || P || 123 || Brake Pads || 4
Volvo || Brakes || A || 123 || Brake Pads || 0
.... and so on, with every part and part code needed for a Brake job.
Now this first table lists all parts directly associated with Job
Types. My second table contains all the auxillary parts for each job
type, which shift around somewhat, like Nuts and Washers, etc. For
example, it currently looks something like this:
Volvo || Brakes || 101 || Screw 1/4" || 10
Volvo || Brakes || 102 || Nut 1/4" ID || 10
Volvo || Brakes || 103 || Cotter Pin || 2
What I would like to see is the two tables merged together in such a
way that all parts for a Volvo Brake Job are listed for the Scenario of
F, P, and A.
Volvo || Brakes || F || 123 || Brake Pads || 4
Volvo || Brakes || P || 123 || Brake Pads || 4
Volvo || Brakes || A || 123 || Brake Pads || 0
Volvo || Brakes || F || 101 || Screw 1/4" || 10
Volvo || Brakes || P || 101 || Screw 1/4" || 10
Volvo || Brakes || A || 101 || Screw 1/4" || 10
Volvo || Brakes || F || 102 || Nut 1/4" ID || 10
Volvo || Brakes || P || 102 || Nut 1/4" ID || 10
Volvo || Brakes || A || 102 || Nut 1/4" ID || 10
Volvo || Brakes || F || 103 || Cotter Pin || 2
Volvo || Brakes || P || 103 || Cotter Pin || 2
Volvo || Brakes || A || 103 || Cotter Pin || 2
Is this possible? Once this is accomplished I will go through and turn
all 'A's quantity to 0, unless there is a way to do it in one of these
steps.
Thanks
I would like to bring two tables together.
The first table contains 5 columns. Let's call them:
Car Type || Job Type || FPA || Part Code || Part Description ||
Quantity
The second table contains 4 columns:
Car Type || Job Type || Part Code || Part Description
What I would like to do is use the first set of data as a base. It
lists every car type with every job type, and then three scenarios
(either F, P, or A[Forecast, Planned, Actual]) to show each Part Code
and Part Description, and the Quantity of Parts. For example:
Volvo || Brakes || F || 123 || Brake Pads || 4
Volvo || Brakes || P || 123 || Brake Pads || 4
Volvo || Brakes || A || 123 || Brake Pads || 0
.... and so on, with every part and part code needed for a Brake job.
Now this first table lists all parts directly associated with Job
Types. My second table contains all the auxillary parts for each job
type, which shift around somewhat, like Nuts and Washers, etc. For
example, it currently looks something like this:
Volvo || Brakes || 101 || Screw 1/4" || 10
Volvo || Brakes || 102 || Nut 1/4" ID || 10
Volvo || Brakes || 103 || Cotter Pin || 2
What I would like to see is the two tables merged together in such a
way that all parts for a Volvo Brake Job are listed for the Scenario of
F, P, and A.
Volvo || Brakes || F || 123 || Brake Pads || 4
Volvo || Brakes || P || 123 || Brake Pads || 4
Volvo || Brakes || A || 123 || Brake Pads || 0
Volvo || Brakes || F || 101 || Screw 1/4" || 10
Volvo || Brakes || P || 101 || Screw 1/4" || 10
Volvo || Brakes || A || 101 || Screw 1/4" || 10
Volvo || Brakes || F || 102 || Nut 1/4" ID || 10
Volvo || Brakes || P || 102 || Nut 1/4" ID || 10
Volvo || Brakes || A || 102 || Nut 1/4" ID || 10
Volvo || Brakes || F || 103 || Cotter Pin || 2
Volvo || Brakes || P || 103 || Cotter Pin || 2
Volvo || Brakes || A || 103 || Cotter Pin || 2
Is this possible? Once this is accomplished I will go through and turn
all 'A's quantity to 0, unless there is a way to do it in one of these
steps.
Thanks