Pregunta

I have this table:

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

What is this code doing?

¿Fue útil?

Solución

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

SQLFiddle here.

Share and enjoy.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top