Re: [ADMIN] Recursive use

2006-10-13 Thread Aaron Bono
On 10/4/06, Alexander Burbello <[EMAIL PROTECTED]> wrote: 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 intI can have 3 level by business rules 1 - Father- 2 - Children- 3 - Gr

Re: [ADMIN] Recursive use

2006-10-10 Thread Jim C. Nasby
On Tue, Oct 10, 2006 at 04:33:46PM -0500, Jay A. Kreibich wrote: > On Tue, Oct 10, 2006 at 10:15:42AM -0500, Jim C. Nasby scratched on the wall: > > On Fri, Oct 06, 2006 at 10:37:26AM -0500, Jay A. Kreibich wrote: > > > These are generally referred to as "Hierarchical Queries" and center > > >

Re: [ADMIN] Recursive use

2006-10-10 Thread Jay A. Kreibich
On Tue, Oct 10, 2006 at 10:15:42AM -0500, Jim C. Nasby scratched on the wall: > On Fri, Oct 06, 2006 at 10:37:26AM -0500, Jay A. Kreibich wrote: > > These are generally referred to as "Hierarchical Queries" and center > > around the idea of a self-referencing table (such as an employee > > ta

Re: [ADMIN] Recursive use

2006-10-10 Thread Jim C. Nasby
On Fri, Oct 06, 2006 at 10:37:26AM -0500, Jay A. Kreibich wrote: > These are generally referred to as "Hierarchical Queries" and center > around the idea of a self-referencing table (such as an employee > table with a "manager" field that is a FK to another row in the same > table). This e

Re: [ADMIN] Recursive use

2006-10-06 Thread Chris Browne
[EMAIL PROTECTED] (Alexander Burbello) writes: > 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 - Ch

Re: [ADMIN] Recursive use

2006-10-06 Thread Jay A. Kreibich
On Wed, Oct 04, 2006 at 10:08:10AM -0300, Alexander Burbello scratched on the wall: > 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 bu

Re: [ADMIN] Recursive use

2006-10-04 Thread Adam Radlowski
I think it is not administration thing, but SQL language problem. PostgreSQL is SQL92 compatible and has many very good and useful addons. Generally, PostgreSQL gives You tools to analyze all, what You want, when You hava data in tables. You've explained in to short way You problem. The best is

Re: [ADMIN] Recursive use

2006-10-04 Thread Bruno Wolff III
On Wed, Oct 04, 2006 at 10:08:10 -0300, Alexander Burbello <[EMAIL PROTECTED]> wrote: > > I need to know if Postgres do recursive search and how can I do! There is a contrib module (tablefunc I think) that allows recursive queries. However in your example below, you don't actuall need recursion

[ADMIN] Recursive use

2006-10-04 Thread Alexander Burbello
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 ask