Re: Sub-Entities

From: -CELKO- <jcelko212_at_earthlink.net>
Date: 3 Jul 2005 09:31:03 -0700
Message-ID: <1120408263.468622.245270_at_g47g2000cwa.googlegroups.com>


>> If individuals and organizations don't share a parent table what should the DDL for the orders table be? <<

I look to my rule about industry standards and not inventing my own codes and find the Dun & Bradstreeet numbers for customers. I do not care if it is a company or a person as long as they pay on time.

CREATE TABLE Orders
(order_nbr INTEGER NOT NULL PRIMARY KEY
  CHECK ( <<check digit logic>>),
 duns_nbr CHAR(9) NOT NULL

        REFERENCES DunNumbers (duns_nbr)    ON UPDATE CASCADE
   ON DELETE CASCADE,
 ..
) Received on Sun Jul 03 2005 - 18:31:03 CEST

Original text of this message