Re: pointers on representing tree in db?
From: Philip Lijnzaad <lijnzaad_at_ebi.ac.uk>
Date: 20 Apr 2001 12:10:40 +0100
Message-ID: <u7zodbrfm7.fsf_at_sol6.ebi.ac.uk>
Date: 20 Apr 2001 12:10:40 +0100
Message-ID: <u7zodbrfm7.fsf_at_sol6.ebi.ac.uk>
On Thu, 19 Apr 2001 22:06:16 +0200,
"Lennart" == Lennart Jonsson <lennart_at_kommunicera.umea.se> wrote:
>>>Table Data (id integer not null, parent_id references...) id is p.k
>>>Table Ancestor (id, ancestor_id) both id and ancestor_id references id in
>>>Data
Lennart> Thus the ancestor table can be asked for the subtree or the path Lennart> from a node to root
Lennart> I havent been able to look at the solution bye Joe Celko yet, so I cant Lennart> comment on that
Philip
-- Why don't Alice and Bob simply get married? ----------------------------------------------------------------------------- Philip Lijnzaad, lijnzaad_at_ebi.ac.uk \ European Bioinformatics Institute,rm A2-08 +44 (0)1223 49 4639 / Wellcome Trust Genome Campus, Hinxton +44 (0)1223 49 4468 (fax) \ Cambridgeshire CB10 1SD, GREAT BRITAIN PGP fingerprint: E1 03 BF 80 94 61 B6 FC 50 3D 1F 64 40 75 FB 53Received on Fri Apr 20 2001 - 13:10:40 CEST