Re: Tables design question

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Tables design question
Date: 2018-03-28 18:58:28
Message-ID: CAKFQuwZJ5nQw9Tx0vtFnbuDPu=K4eRHhsXsTq030ioMq9qTX+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wednesday, March 28, 2018, JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
wrote:
>
> The table "corequisites" has data about courses that must be taken at the
> same time that another course.
>
>
>
>
I would consider setting up corequisites as (id serial,
course_group_members integer[]) with an exclusion constraint that no
course_id can appear in more than one array.

David J.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Garry Chen 2018-04-02 13:12:14 Question about pg_class column relpartbound
Previous Message JORGE MALDONADO 2018-03-28 18:43:32 Tables design question