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: valcindor <valcindor_at_sinpag.com>
Date: 3 Oct 2003 08:06:09 -0700
Message-ID: <3e0d2ab1.0310030706.71e853f2@posting.google.com>


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)); Received on Fri Oct 03 2003 - 10:06:09 CDT

Original text of this message

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