سؤال

I have this table:

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

What is this code doing?

هل كانت مفيدة؟

المحلول

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

SQLFiddle here.

Share and enjoy.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top