P
pon
I am joining 4 tables(workorder, charges, parts, labor) to get the results.
The results are as follows
WO1, CHR1, Part1, labor1
WO1, CHR1, Part1, labor2
WO1, CHR1, Part1, labor3
WO2, CHR2, Part1, labor1
WO2, CHR3, Part1, labor1
WO2, CHR4, Part1, labor1
WO3, CHR5, Part2, labor1
WO3, CHR5, Part3, labor1
WO3, CHR5, Part4, labor1
I want the results to be displayed by workorder but don't want the charges
or parts or labor to be repeated.
For WO1 I can use group by to get the results.
WO1, CHR1, Part1,
labor1, labor2, labor3 - Repeats for lobor
For WO2
WO2, CHR2,CHR3, CHR4 - Repeat for charge
Part1, labor1
For WO3
WO3, CHR5,
Part2, part3, part4 - Repeat for Part
labor1
I am not sure how to get these results. Please help
pon
The results are as follows
WO1, CHR1, Part1, labor1
WO1, CHR1, Part1, labor2
WO1, CHR1, Part1, labor3
WO2, CHR2, Part1, labor1
WO2, CHR3, Part1, labor1
WO2, CHR4, Part1, labor1
WO3, CHR5, Part2, labor1
WO3, CHR5, Part3, labor1
WO3, CHR5, Part4, labor1
I want the results to be displayed by workorder but don't want the charges
or parts or labor to be repeated.
For WO1 I can use group by to get the results.
WO1, CHR1, Part1,
labor1, labor2, labor3 - Repeats for lobor
For WO2
WO2, CHR2,CHR3, CHR4 - Repeat for charge
Part1, labor1
For WO3
WO3, CHR5,
Part2, part3, part4 - Repeat for Part
labor1
I am not sure how to get these results. Please help
pon