Hi, I have a table, which contains multiple rows for a single set of records. It looks like -
pk Value ValueType
1 123 XXXX
1 234 YYYY
1 345 ZZZZ
2 1234 XXXX
2 2341 YYYY
2 2345 ZZZZ
The pk + Value + ValueType will be unique.
I need to write a sql which will combine the records with same pk as a single records i.e. the output will be as follows -
XXXX YYYY ZZZZ
123 234 345
1234 2341 2345
Any suggestion/help will be appreciated.