pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D'Arcy J.M. Cain <darcy@druid.net>
To: Aaron Bono <postgresql@aranya.com>
Cc: Curtis@daycos.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Table relationships
Date: Tue, 9 Jan 2007 10:30:33 -0500
Message-ID: <20070109103033.a55fcd53.darcy@druid.net> (raw)
In-Reply-To: <bf05e51c0701090713v1564455esc175cf3bb402393c@mail.gmail.com>
References: <031936836C46D611BB1B00508BE7345D04DC1BB5@gatekeeper.daycos.com>
	<20070109094113.064bae02.darcy@druid.net>
	<bf05e51c0701090713v1564455esc175cf3bb402393c@mail.gmail.com>

On Tue, 9 Jan 2007 09:13:35 -0600
"Aaron Bono" <postgresql@aranya.com> wrote:
> On 1/9/07, D'Arcy J.M. Cain <darcy@druid.net> wrote:
> >    company  <===> address  <===> detail
> 
> This approach implies that the address defines the relationship between a
> company and the detail (the other departments/offices).  I cannot think of a
> business model that would use this though there probably are some...

Like the obvious one - companies have many places (departments) that
things are shipped to and details are things that are shipped.

> I'm not sure what this relationship is for.  It would appear that a
> department can have different addresses for different companies.

Hmm.  I guess I missed that.  I'm just tossing out ideas here.  Real,
in depth analysis would require an invoicable relationship.  :-)

> There are many possibilities.  Which one is best will depend on
> > analysing your particular business model.
> 
> I agree whole heartedly.  That is why I recommend starting with a logic
> structure before moving on to the physical.

Absolutely.  Don't even think about the tables until you have mapped
out the business model.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (13+ messages)

Message-ID: <20070109103033.a55fcd53.darcy@druid.net>
Permalink:  ../20070109103033.a55fcd53.darcy@druid.net/
Also on:    postgresql.org/message-id/20070109103033.a55fcd53.darcy@druid.net

 · 

reply

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: darcy@druid.net, postgresql@aranya.com, Curtis@daycos.com
  Subject: Re: Table relationships
  In-Reply-To: <20070109103033.a55fcd53.darcy@druid.net>

* 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