Re: Table-design for categories, suggestions needed - Mailing list pgsql-novice

From Richard Broersma
Subject Re: Table-design for categories, suggestions needed
Date
Msg-id AANLkTinn-BmGd9vJxvFs_dWRqu5jfBEXnjkOj0Y07hhF@mail.gmail.com
Whole thread Raw
In response to Re: Table-design for categories, suggestions needed  (Rikard Bosnjakovic <rikard.bosnjakovic@gmail.com>)
List pgsql-novice
On Wed, Aug 4, 2010 at 6:32 PM, Rikard Bosnjakovic
<rikard.bosnjakovic@gmail.com> wrote:

> A more readable output:
>
> # select id, name, subcategory_1, subcategory_2 from categories where id > 3;
>  id | name  | subcategory_1 | subcategory_2
> ----+-------+---------------+---------------
>  4 | IC    |               |
>  6 | Logic |             4 |
>  10 | CMOS  |               |             6
>  11 | TTL   |               |             6

Are you trying to model entity inheritance with this design?
--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-novice by date:

Previous
From: Rikard Bosnjakovic
Date:
Subject: Re: Table-design for categories, suggestions needed
Next
From: Leon Starr
Date:
Subject: Trouble accessing %ROWTYPE attributes returned by function