How can I split columns "MyCode" and "MyAmount" into multiple rows in MySQL 8.0.33
I tried it with only 1 column, but with 2 columns I can't get it right
MyID | MyCode | MyAmount |
---|---|---|
1209 | MR;CA,KK | 3.95;100.15;-9.75 |
1210 | CA;GU | 13.75;1004.60 |
The expected result:
MyID | MyCode | MyAmount |
---|---|---|
1209 | MR | 3.95 |
1209 | CA | 100.15 |
1209 | KK | -9.75 |
1210 | CA | 13.75 |
1210 | GU | 1004.60 |