Re: Question about One to Many relationships
| От | Jim C. Nasby |
|---|---|
| Тема | Re: Question about One to Many relationships |
| Дата | |
| Msg-id | 20060327135219.GL80726@pervasive.com обсуждение исходный текст |
| Ответ на | Re: Question about One to Many relationships (PFC <lists@peufeu.com>) |
| Список | 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 по дате отправления: