Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> how to do when joints forbidden in hierarchical queries

how to do when joints forbidden in hierarchical queries

From: gil guerillot <gg200492_at_club-internet.fr>
Date: Fri, 25 Sep 1998 20:39:14 +0200
Message-ID: <360BE351.BE763102@club-internet.fr>


example of oracle training table

table emp:
empno
ename
job
mgr
hiredate
sal
comm
deptno

table deptno:
deptno
dname
loc

 the following query the hierarchy of employees :

<<select level,ename
from emp
connect by mgr=prior empno
start with mgr is null >>

joints being forbidden in hierarchical queries ,how to add the fields dname and loc in the select clause of the query for obtain a result like select level,ename,dname,loc ... Received on Fri Sep 25 1998 - 13:39:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US