Re: Foreign Key normalization question

From: Matthew Wilson <matt(at)tplus1(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Foreign Key normalization question
Date: 2008-09-02 20:20:25
Message-ID: slrngbr809.l2q.matt@sprout.tplus1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue 02 Sep 2008 04:06:20 PM EDT, Martin Gainty wrote:
> you can use setup a foreign key constraint in your create table so that col=
> umn is only populated when
> there is a value which syncs to the referenced value
> http://www.postgresql.org/docs/7.4/interactive/sql-createtable.html

I don't think that will work.

When somebody inserts (99, 98) into product_location, I want to make
sure that product ID 99 has the same customer ID as location ID 98.

Matt

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Wilson 2008-09-02 20:35:24 Re: Foreign Key normalization question
Previous Message Scott Marlowe 2008-09-02 20:19:41 Re: Foreign Key normalization question