From: Richard Broersma <richard.broersma@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: check constraint on multiple tables?
Date: Wed, 3 Mar 2010 07:29:22 -0800
Message-ID: <396486431003030729x17f921bcr7ff439113a5644ab@mail.gmail.com> (raw)
In-Reply-To: <20100303151900.GA19735@apartia.fr>
References: <20100303150227.GA18661@apartia.fr>
<396486431003030714s48b239e2ub8b58a49b9aa29e4@mail.gmail.com>
<20100303151900.GA19735@apartia.fr>
On Wed, Mar 3, 2010 at 7:19 AM, Louis-David Mitterrand
<vindex+lists-pgsql-sql@apartia.org> wrote:
> CREATE TABLE cabin_type (
> CREATE TABLE cabin_category (
> CREATE TABLE cabin (
I'm just curious about a few things.
1) What is the difference between a cabin_type and a cabin_category.
2) Does each ship have an exclusive set of cabin_types that no other
ship can have? The table definitions imply that this is so.
I'm just guessing here since I don't really understand the
relationships involved in a ship's cabins. However, I would expect
that a cabin should be directly related to a ship. Each cabin is
defined by a category according the set in the cabin_category table.
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: richard.broersma@gmail.com
Subject: Re: check constraint on multiple tables?
In-Reply-To: <396486431003030729x17f921bcr7ff439113a5644ab@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox