Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to use the SQL Procedure to realize the HIERARCHY table spreading?

$
0
0

Dear all,

 

Recently,I‘m trying to wirte some store procedure to finish some task. One of them is use the SQL procedure to spread the hierarchy table.

Well, actually it's just like that we need find the each path of a hierarchy table tree and use it as a record of a table. When we find every path of this tree(each path is begin with root node end with leaf node ), we could get a output table and we could finish this task.

 

However, i met some problem. The details are as following:

 

Source Table(hierarchy table) : It's already in HANA DB.

I.png

Demand:SQL Procedure, HANA DB

 

Needed Result Table(Output)

R.png

I also refered some blog and doc. But it's not the same as this.

To be honest, I'm really not good at writing this. So I need your help, my bros.

Thank you in advance and nice day.

 

 

BRs,

Geoffrey.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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