Re: Table-design for categories, suggestions needed

From: gargoyle60 <gargoyle60(at)example(dot)invalid>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Table-design for categories, suggestions needed
Date: 2010-08-07 07:35:14
Message-ID: j33q5693gk91nbu98rc64audgkm873ah49@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, 06 Aug 2010 19:54:01 -0400, Lew <noone(at)lewscanon(dot)com> wrote:

>On 08/05/2010 04:06 AM, gargoyle60 wrote:
>> Oops, that should read...
>> ...
>> FOREIGN KEY (parent_level)
>> REFERENCES category (category_level)
>
>So category (category_level) is a unique or primary key, then.

Something like that, probably with (category_level, category_code).
Like I said, I never got around to implementing the provisional design and there may be more to it
than that.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Victor Hugo 2010-08-07 12:27:26 Re: Table-design for categories, suggestions needed
Previous Message Lew 2010-08-06 23:54:01 Re: Table-design for categories, suggestions needed