I need help trying to convert key value pairs into a single row.
For example -- Table A
id code value
1 A 30
1 C 20
1 H 10
2 B 5
2 C 10
and so on...
How can I easily create a select that could convert the key-value pair into a flat view showing only one id as row and as many columns as necessary. Blank/null where no values are present. For example:
id A B C D E F, etc...
values -------------------
Thanks in advance!
J.
For example -- Table A
id code value
1 A 30
1 C 20
1 H 10
2 B 5
2 C 10
and so on...
How can I easily create a select that could convert the key-value pair into a flat view showing only one id as row and as many columns as necessary. Blank/null where no values are present. For example:
id A B C D E F, etc...
values -------------------
Thanks in advance!
J.