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

Home -> Community -> Usenet -> c.d.o.server -> Tree of nodes

Tree of nodes

From: vero <valcindor_at_free.fr>
Date: Fri, 3 Oct 2003 16:55:36 +0200
Message-ID: <3f7d8d67$0$20639$626a54ce@news.free.fr>


I have a table recording a tree of nodes. under each node there could be 0, 1 or more records representing documents. How can I recreate the tree of node with the number of documents attached to a node or its sub nodes ?

ex :
-- node-1

  document 1
  document 2
-- node-1.1

  document 3
-- node-2

the SQLRequest would present this tree of node like this :

node-1  has 3 documents
node-1.1 has 1 document
node-2  has 4 documents
node-2.1 has 3 documents
node-2.2 has 1 document
node-3  has 0 document

The table structure is as follow
create table toto ( obj_idy number, obj_peridy number, obj_type number, obj_name varchar(100));

--
Véronique Alcindor Davis
Equipe Sinpag
101-103 boulevard McDonald
75019 Paris
Tél : 01 44 89 47 33
Received on Fri Oct 03 2003 - 09:55:36 CDT

Original text of this message

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