Oracle Error Message
PLS-00117: Duplicate connect-by clause in table expression
Reason for the Error
Two or more CONNECT BY clauses were found in a SELECT statement. The CONNECT BY clause defines a relationship used to return rows in a hierarchical order. The relationship can contain two expressions separated by a relational operator (such as = or !=), but a statement can contain only one CONNECT BY clause.
Solution
Remove one of the CONNECT BY clauses and, if necessary, separate expressions by a relational operator.