title: Generate a parent-child hierarchy from table with levels paths
body: <p>I managed to transform some unreadable data in such a table. The <code>SQL</code> table represents a multipleparent flat hierarchy. The question is, how can I generate a normal ragged sql <code>parent-child</code> hierarchy: <code>ID | Element | Parent</code> based on the levels and the structure attached below ?</p>
  
  <p><a href="https://i.stack.imgur.com/GobmS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GobmS.png" alt="enter image description here"></a></p>