Skip to content
Advertisement

Hierarchy Queries in BigQuery

I have a data from ControlM (scheduler) this way

I saw many solutions where they have started from first node and descended to last node. But that is likely to fan-out with this data. What I am looking for a fan-in solution, where I can start with any end node and come towards first node

In this case the answer that am looking for is

Advertisement

Answer

Consider below approach

if applied to sample data in your question – output is

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement