Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

PIVOT / UNPIVOT in hana

$
0
0

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.

ACCOUNTID1ID2ID3ID4
A011010
A020110
A031100

 

Now i would like to UNPIVOT this table to find out which IDs are used by which accounts.

ACCOUNTID
A01ID1
A01ID3
A02ID2
A02ID3
A03ID1
A03ID2

 

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


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>