Question

I have this table:

CREATE TABLE DAG(
  firstID NUMBER,
  secondID NUMBER,
);

What is this code doing?

Was it helpful?

Solution

It's finding all the direct and indirect descendants of each ancestor.

SQLFiddle here.

Share and enjoy.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top