From: Jim C. Nasby <jnasby@pervasive.com>
To: PFC <lists@peufeu.com>
Cc: D'Arcy J.M. Cain <darcy@druid.net>
Cc: Todd Kennedy <todd.kennedy@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Question about One to Many relationships
Date: Mon, 27 Mar 2006 07:52:19 -0600
Message-ID: <20060327135219.GL80726@pervasive.com> (raw)
In-Reply-To: <op.s6xhjbjocigqcu@apollo13>
References: <226d83de0603240852q54af3512odfce218d69718c8b@mail.gmail.com>
<20060324120142.d3fdf477.darcy@druid.net>
<op.s6xhjbjocigqcu@apollo13>
On Fri, Mar 24, 2006 at 06:29:25PM +0100, PFC wrote:
>
>
> >>And I want to link the band to the album, but, if the album is a
> >>compilation it'll be linked to multiple band.ids, so i can't just add
> >>a column like:
>
> For a compilation, you should link a band to a track, not an album.
> This opens another can of worms...
>
> I would use the following tables :
BTW, if you're going to be writing code to manage stuff like this, you
should absolutely check out the source for http://musicbrainz.org/,
which uses PostgreSQL as it's backend.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
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: jnasby@pervasive.com, lists@peufeu.com, darcy@druid.net, todd.kennedy@gmail.com
Subject: Re: Question about One to Many relationships
In-Reply-To: <20060327135219.GL80726@pervasive.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