I am trying to transpose the following table (example) to 1 row where column name is one of the row column 1 and the value of the row will be corresponding columns 2row[x].
Table
|--------------------------------|
| ID | Key | Value |
|--------------------------------|
| 1 | 'Color' | '13' |
| 1 | 'Access' | 'H' |
| 1 | 'LastCalc' | '17.06' |
| 2 | 'Choice' | 'done' |
| 2 | 'timeA' | '15:43' |
|--------------------------------|
Now i will need to select per ID
Selecting ID 1 will give me
|------------------------|
| Key | Value |
|------------------------|
| 'Color' | '13' |
| 'Access' | 'H' |
| 'LastCalc' | '17.06' |
|------------------------|
But i need
|--------------------------------|
| Color | Access | LastCalc |
|--------------------------------|
| '13' | 'H' | '17.06' |
|--------------------------------|
the amount of columns to be created with that method will not surpass 300 columns as i have another columns to ensure that the query will query by subset of 300 and create multiple rows for the same ID.
Anyone ever done that ? I have search around but everything i found was for fix amount of columns and did not do what i am looking for. Maybe i am not using proper search keywords.