Good day,
I have a problem regarding how to build my query in MYSQL. I have this raw data.
ID | NAME | VALUE | DESCRIPTION
ID-0001 | ARV1 | 10200 | First description
ID-0002 | ARV2 | 10300 | Second description
ID-0001 | ARV1 | 10400 | Added Description
And I want to achieve an output like this: Where I want to merge the datas with the same ID and put the other tables in another column and with new column name.
ID | NAME | VALUE 1 | DESCRIPTION 1 | VALUE 2 | DESCRIPTION 2 |
ID-0001 | ARV1 | 10200 | First description | 10400 | Added Description |
ID-0002 | ARV2 | 10300 | Second description | | |
I badly need help. Thanks!