Recursive use

From: Alexander Burbello <burbello3000(at)yahoo(dot)com(dot)br>
To: Lista Postgres <pgsql-admin(at)postgresql(dot)org>
Subject: Recursive use
Date: 2006-10-04 13:08:10
Message-ID: 4523B23A.3000506@yahoo.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi people,

I need to know if Postgres do recursive search and how can I do!
I will explain my problem.

table COOPERATIVE
code_cooperative int
code_coo_father int

I can have 3 level by business rules

1 - Father
----- 2 - Children
--------- 3 - Grandchildren

I would like to have a query asking who is father and granfather
select grandfather, father from COOPERATIVE where COD_COOPERATIVE = 3

Do the Postgres can solve this problem?
Could anybody help me?

Thank you

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2006-10-04 15:43:18 Re: postgres in HA constellation
Previous Message Sebastian Reitenbach 2006-10-04 11:23:45 postgres in HA constellation