Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Sub-Entities

Re: Sub-Entities

From: -CELKO- <jcelko212_at_earthlink.net>
Date: 3 Jul 2005 09:31:03 -0700
Message-ID: <1120408263.468622.245270@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 - 11:31:03 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US