strider235
Programmer
Hi,
I've written a number of different types of queries over the last few years, but I'm drawing a blank on this one. I have to reconstruct some information that has been "exploded". Basically I have some parts that may be part of an assembly. Each record has the following fields:
PartNumber, AssemblyNumber, StepNumber
that has been extracted from a Bill of Materials table and a Work Order table.
For a range of step numbers (200 - 299) all parts associated with that step are part of a single assembly. However, each part can be a member of a number of different assemblies. So, for all the parts in a particular step (200 - 299) find the assembly that they all belong to.
E.g.: PartNum AssemblyNumber Step
1 A 200
1 B 200
2 A 200
2 C 200
3 A 200
3 C 200
4 B 210
4 D 210
5 D 210
For step 200, the correct assembly is 'A'. For step 210, it is 'D'.
Thanks!
I've written a number of different types of queries over the last few years, but I'm drawing a blank on this one. I have to reconstruct some information that has been "exploded". Basically I have some parts that may be part of an assembly. Each record has the following fields:
PartNumber, AssemblyNumber, StepNumber
that has been extracted from a Bill of Materials table and a Work Order table.
For a range of step numbers (200 - 299) all parts associated with that step are part of a single assembly. However, each part can be a member of a number of different assemblies. So, for all the parts in a particular step (200 - 299) find the assembly that they all belong to.
E.g.: PartNum AssemblyNumber Step
1 A 200
1 B 200
2 A 200
2 C 200
3 A 200
3 C 200
4 B 210
4 D 210
5 D 210
For step 200, the correct assembly is 'A'. For step 210, it is 'D'.
Thanks!