Re: SQL Query for Top Down fetching of childs - Mailing list pgsql-sql

From Richard Huxton
Subject Re: SQL Query for Top Down fetching of childs
Date
Msg-id 200401291027.52174.dev@archonet.com
Whole thread Raw
In response to SQL Query for Top Down fetching of childs  ("Kumar" <sgnerd@yahoo.com.sg>)
List pgsql-sql
On Thursday 29 January 2004 06:11, Kumar wrote:
> Dear Friends,
>
> Postgres 7.3.4 on RH Linux 7.2.
>
> I need a query to get the Childs of a parent (Top down analysis). Need to
> list all the departments(Childs) of a parent organization. The table
> structure is

Two places to look for examples:
1. the contrib/tablefunc folder has an example of this sort of thing
2. search the mailing list articles for CONNECT BY (oracle's name for this 
sort of thing) or "tree"

--  Richard Huxton Archonet Ltd


pgsql-sql by date:

Previous
From: azwa@nc.com.my
Date:
Subject: Re: time series data
Next
From: "email lists"
Date:
Subject: query not using index for descending records?