I'm not sure how this relates to "New Random Calculations". Why do you have two OperatorID values in [tblProduction Operation]? Are two
operators required to work on some parts to complete it? If so, will the
individual that is performing Operator2 be in that position during the
entire shift?
I can explain the subject and your first question about the 2
OperatorID fields at the same time - Any employee on any shift might
work at as many as 5 or 6 Workstations alone or with a partner; they
may work on 1 part all shift or they might work on 5 operations of a
single part or they might work on several completely different parts
singly or with a partner. This varies wildly. And there is no "lead"
operator with a helper - for efficiency report considerations they
are all considered equal so I have to report each employee for any
given part operation. And I need all of those employee names
associated with each part operation at each workstation.
In tblProductionOperation, you have one field (OperationStepNumber), how
does this one field correlate with the two fields (OperationID, StepNumber)
in tblPartOperation? If OperationStepNumber is a concatenated field or some
calculation based on the other two, then , I recommend that you break it
into its parts (OperationID, and StepNumber) to make it easier to join these
tables.
OperationStepNumber is not concatenated - I'll explain that in a
moment.
First of all bear in mind that tblProductionOperation is where 90% of
the data is collected. The majority of tables are lookup tables used
exclusively for reference.
This is probably the most difficult part to describe: There is no
standard, pat process that covers how ALL parts are produced.
OperationID denotes whether a given "step" of the production process
for a given part takes place at the shear; the turrets, the brakes,
the presses, the roll form, etc. Also, some parts cross between
departments for their various operations (e.g., 1084122: Dept.1 -
Shear; Dept.1 Press; Dept.2 Turret; Dept.1 Press- in that order) which
leads me to the most confusing part of this - You can count 4
processes in my example but institutionally we don't count it that
way. We count 3 ops for Dept1 (but they are not 1,2,3 ) and 1 for
Dept2 - and we are all very used to doing it that way. And that is
just one of many variations on a theme. So what we have done in our
pre-existing db of Parts and subsequent PartPieceValue is break it
down by type of workstation which are delimited by department - i.e.,
all turrets are in Dept2; all presses are in Dept1, etc.
So....what I have is tblPart w/ PartID which contains a single record
for each part that we produce. tblPartOperation has multiple record
entries for most parts. A record becomes unique in tblPartOperation
across PartID, OperationID, and StepNum (number which could be the
first, second, third, etc. operation at a press, brake, turret, etc.
And yes each part can have multiple operations with a unique
PartPieceValue associated with each operation. So going back to my
example above you would have Shear1, Turret1, Press1, Press2.
So to revisit tblProductionOperation:
tblProductionOperation.WorkstationID references
tblOperation.OperationID through tblWorkstation.OperationID which
tells me if an operation took place at a shear, press, assembly,
brake, etc. tblProductionOperation.OperationStepNum is not linked to
anything. It is a field that the user inputs a number to represent
whether a given operation at a workstation was the 1st, 2nd, etc. step
for THAT TYPE of workstation (i.e., Press1 (entered as a 1), Press2
(entered as a 2), Press3). However, that numeric value
(OperationStepNum) will reference directly to a value stored in
tblPartOperation.StepNum which subsequently has a corresponding
PartPieceValue.
To be clearer, a given record for a part will record the Workstation
(OperationID), OperationStepNum (StepNum), Operator1, Operator2,
QtyRun, QtyScrap. So we will get for example:
Workstation: S017 (which lets me also reference "Shear" from
OperationID; also tells me the value of Dept via tblDepartment- - in
this case Hard Tool)
PartID: 1084122; literal part number
OperationStepNum: 1 (which will reference a record in PartOperation
for Shear; 1st operation)
Workstation: H003 (which lets me also reference "Press" from
OperationID - still Hard Tool)
PartID: 1084122
OperationStepNum: 1 (which will reference a record in PartOperation
for Press; 1st operation)
Workstation: S005 (turret - the first operation in the other Dept. -
Soft Tool)
PartID 1084122
OperationStepNum: 1 (which will reference a record in PartOperation
for Turret; 1st operation)
Workstation: H005 (Press again - and back to Hard Tool)
PartID 1084122
OperationStepNum: 2 (which will reference a record in PartOperation
for Press; 2nd operation)
Some parts have as many as seven operations each one having a unique
value for tblPartOperation.PartPieceValue.
Does this shed any light?
Thanks,
Tim