Quote:
Originally Posted by dlg63
I tried using the CONNECT_BY_ROOT but was unsuccessful
|
CONNECT_BY_ROOT is an Oracle nonstandard SQL extension; DB2 uses the standard RECURSIVE construct with a common table expression; search for "recursive" in earlier threads in this forum for examples, or have a look in the DB2 SQL Reference Guide (e.g. in Chapter 5, Select Statement, Common Table Expression, Recursion Example: bill of materials).