Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Need connect by, sys_connect_by_path assistance
I'm a DBA on a DW project, taking care of my partitions, backups,
etc. One of our developers has come up with the following subselect
portion of a query that's giving us issues, and I'm not familiar
enough with use of connect by, sys_connect_by_path, etc. to rewrite
this thing, hoping someone can help. The query itself works fine
against the 130k table it references, it's when it gets wrapped into
other queries that we get errors like "ORA-01788: CONNECT BY clause
required in this query block". Any assistance would be greatly
appreciated.
select connect_by_root P.BUSINESS_ASSOCIATES_NAME as root_vendor_name,
connect_by_root P.BUSINESS_ASSOCIATES_NUMBER as root_vendor_number, connect_by_iscycle as IsCycle, p.business_associates_number as Business_Associates_Number, P.BUSINESS_ASSOCIATES_NAME as Business_Associates_Name,decode(P.ASSOC_VENDOR_BA_NUMBER,null,'N/A',P.ASSOC_VENDOR_BA_NUMBER) as Assoc_Vendor_Ba_Number,
![]() |
![]() |