RGottesman
New member
- Joined
- Mar 4, 2015
- Messages
- 5
- Reaction score
- 0
- Points
- 0
I need to convert data received from the system that is in the following format
To a more usable format of either
Or a table by code
Any suggestions will be greatly appreciated, thank you in advance
ID | Code | Amount | code2 | amount2 | code3 | amount3 | code4 | amount4 |
123 | REG | 40 | VAC | 24 | PTO | 16 | ||
456 | O/T | 10 | REG | 72 | VAC | 8 |
To a more usable format of either
id | code | amount |
123 | REG | 40 |
123 | VAC | 24 |
123 | PTO | 16 |
456 | O/T | 10 |
456 | REG | 72 |
456 | VAC | 8 |
Or a table by code
ID | REG | VAC | PTO | O/T |
123 | 40 | 24 | 16 | |
456 | 72 | 8 | 10 |
Any suggestions will be greatly appreciated, thank you in advance