Hi Guys,
MSSQL and Oracle have the PIVOT / UNPIVOT operators.
It seems that SAP as left out these in HANA?
How would you solve the use of these in HANA?
My own issue atm.
I have small table with Accounts and IDs about 20 accounts and 50 different ids. which can be dynamically expanded.
| ACCOUNT | ID1 | ID2 | ID3 | ID4 |
|---|---|---|---|---|
| A01 | 1 | 0 | 1 | 0 |
| A02 | 0 | 1 | 1 | 0 |
| A03 | 1 | 1 | 0 | 0 |
Now i would like to UNPIVOT this table to find out which IDs are used by which accounts.
| ACCOUNT | ID |
|---|---|
| A01 | ID1 |
| A01 | ID3 |
| A02 | ID2 |
| A02 | ID3 |
| A03 | ID1 |
| A03 | ID2 |
Since the table can be modified dynamically i would like to avoid using the modeller, And code it in a dynamic view instead,
Any help is appreciated
.
Best Regards,
Rasmus