Based on the below workflow i would like to get a table data like shown below.
Workflow
a-- no child b-- child is c c-- parent is b d-- child f f-- par