| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Connect Query
Try to write your query like this
select org_cod, Xoro.oro_father
from org, (
select oro_father, oro_cod
from oro
start with oro_father is null CONNECT BY PRIOR oro_cod=oro_father) Xoro
where Xoro.oro_cod = org_cod;
Mario Perreault mario.perreault_at_bigfoot.com
DBA
Groupe Informission
Québec, Qc
Canada
Jordi Bellver a écrit dans le message
<362F5C3D.56A3CB04@_N_O_S_P_A_M_eds.com>...
>
> Hi !
>
> For one o this reasons, I need to retrieve information with a query,
>from some tables, and organize this information with a connect by.
>
> Something like this:
>
>select org_cod, oro_father
>from org, oro
>where oro_cod = org_cod
>start with oro_father is null CONNECT BY PRIOR oro_cod=oro_father;
>
> but I get a : ORA-01437: cannot have join with CONNECT BY;
>
>Is there any work around to solve this whit out a cursor ?
>
>TIA.
>
>Jordi Bellver
>
>
Received on Sat Oct 24 1998 - 00:00:00 CDT
![]() |
![]() |