Re: Table design problem
Date: Mon, 21 Apr 2003 15:16:34 -0400
Message-ID: <a738av4t8g53scubjc8n3rfkj3vm8qc4ke_at_4ax.com>
On Thu, 17 Apr 2003 10:14:25 +0000 (UTC), "Roy Hann" <rhann_at_globalnet.co.uk> wrote:
>OK, I think I see what you are getting at here. I think you are suggesting
>that my model ought to allow me to record the existence of a party
>regardless of whether they place an order (making them a customer).
Yes, in part.
>If I am
>correct about this, then I think you really just object (perhaps properly)
>to my table name being "customer". I never said so originally, but my model
>always did permit what I called a customer without any corresponding order.
>Furthermore, there are no attributes in the join of the new customer table
>and the new party table that would not also exist in my old customer table,
>so a separate party table and customer table don't appear to add any value.
>Indeed it appears spurious.
I didn't recommend a separate party table and customer table. I suggested that you consider a) parties as a supertype, b) individuals as one subtype of parties, c) organizations as another subtype of parties. You need several constraints to make sure your data is sane; I presume you've nailed those down?
You'd use a table for customers--not a query--if you've identified attributes of the customer relationship that aren't properly attributes of any other table. I can't think of any off the top of my head.
>Or do I continue to miss the point?
I think so, but I'm not sure.
-- Mike Sherrill Information Management SystemsReceived on Mon Apr 21 2003 - 21:16:34 CEST
