From: Paulo Rodrigues <prodrigues@vianetworks.pt>
To: Wei Weng <wweng@kencast.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Hierarchical queries
Date: Tue, 15 Jan 2002 16:46:38 +0000
Message-ID: <3C445CEE.8040505@vianetworks.pt> (raw)
References: <3C4430FF.30803@vianetworks.pt>
<20020115114744.494618a7.wweng@kencast.com>
Hi Wei,
An example would be a Bill of Materials; with Oracle I'd do
select level, item_id, parent_id, quantity from boms start with
parent_id='A' connect by prior parent_id=item_id;
This is what I understand for a "tree-like" query. If that's the wrong
name for it, it's my mistake, I'm sure.
Thanks,
Paulo
Wei Weng wrote:
> What is a "tree-like" queries? Or you mean a query returns you a hierarchy
> structure? (Thus tree like)
>
> On Tue, 15 Jan 2002 13:39:11 +0000
> Paulo Rodrigues <prodrigues@vianetworks.pt> wrote:
>
>
>>Hello all,
>>
>>how do you usually handle hierarchical (tree-like) queries? I'm sure
>>someone else needed this already.
>>
>>Thanks in advance,
>>Paulo
>>
>>--
>>Paulo Rodrigues
>>Professional Services / MIS
>>prodrigues@vianetworks.pt
>>
>>VIA NET.WORKS Portugal
>>http://www.vianetworks.pt
>>local touch global reach
>>-------------------------
>>http://security.vianetworks.pt/sig/
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 4: Don't 'kill -9' the postmaster
>>
>>
>
>
--
Paulo Rodrigues
Professional Services / MIS
prodrigues@vianetworks.pt
VIA NET.WORKS Portugal
http://www.vianetworks.pt
local touch global reach
-------------------------
Sabe quem tem acesso à rede da sua empresa?
http://security.vianetworks.pt/sig/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: prodrigues@vianetworks.pt, wweng@kencast.com
Subject: Re: Hierarchical queries
In-Reply-To: <3C445CEE.8040505@vianetworks.pt>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox