Re: Question about One to Many relationships - Mailing list pgsql-sql

From Jim C. Nasby
Subject Re: Question about One to Many relationships
Date
Msg-id 20060327135219.GL80726@pervasive.com
Whole thread Raw
In response to Re: Question about One to Many relationships  (PFC <lists@peufeu.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: SQL Query Newbie Help
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Find min and max values across two columns?