K
KyleAK
I am trying to write a query to take the following table:
Part Description
1001 BHJ, UI
1002 GU, SI, PQ
1003 YU, JU
And write it in the following format:
Part Description
1001 BHJ
1001 UI
1002 GU
1002 SI
1002 PQ
1003 YU
1003 JU
Basically, move each separate value, separated by a comma in the
description field, to a new record, but still tied to the original part
number.
I know I should be using a UNION query, but not sure exactly how to
formulate it. Any help would be greatly appreciated.
Part Description
1001 BHJ, UI
1002 GU, SI, PQ
1003 YU, JU
And write it in the following format:
Part Description
1001 BHJ
1001 UI
1002 GU
1002 SI
1002 PQ
1003 YU
1003 JU
Basically, move each separate value, separated by a comma in the
description field, to a new record, but still tied to the original part
number.
I know I should be using a UNION query, but not sure exactly how to
formulate it. Any help would be greatly appreciated.