From oracle-l-bounce@freelists.org  Mon Aug  8 07:40:24 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j78CeOpY020039
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 07:40:24 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j78CeNIP020026
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 07:40:23 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0752F1DD0C4;
 Mon,  8 Aug 2005 07:40:21 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 07431-08; Mon, 8 Aug 2005 07:40:20 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6DE331DD24C;
 Mon,  8 Aug 2005 07:40:20 -0500 (EST)
In-Reply-To: <7765c897050808052732e9d7f3@mail.gmail.com>
To: niall.litchfield@gmail.com
Cc: jim_kennedy@mentor.com, oracle-l@freelists.org,
        oracle-l-bounce@freelists.org, psinger1@chartermi.net
Subject: Re: Counterquestion - is Oracle a He or a She - or an It or a
  hermaphrodite
MIME-Version: 1.0
Message-ID: <OF15A36A80.E4A8728F-ON03257057.0044C44E-03257057.0045767B@toyota.com.br>
From: "Leandro Guimaraes Faria C. Dutra" <ldutra@toyota.com.br>
Date: Mon, 8 Aug 2005 09:34:25 -0300
X-MIMETrack: Serialize by Router on TDBKDD08/TDB(Release 6.5.1|January 21, 2004) at 08/08/2005
 09:30:44 AM,
 Serialize complete at 08/08/2005 09:30:44 AM
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis
X-archive-position: 23533
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: ldutra@toyota.com.br
Precedence: normal
Reply-To: ldutra@toyota.com.br
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-mailscan-MailScanner-Information: Please contact the ISP for more information
X-mailscan-MailScanner: Found to be clean
X-MailScanner-From: oracle-l-bounce@freelists.org
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
 version=2.63


oracle-l-bounce@freelists.org gravou em 2005-08-08 09:27:29:

> Isn't this a great example of how a better design is a better solution?
> Wouldn't
> 
> PATIENT
> =======
> PATIENT_PK
> ....................
> 
> ALLERGEN
> =========
> ALLERGEN_PK
> ........................
> 
> KNOWN_ALLERGIES
> ================
> PATIENT_PK  -- foreign key
> ALLERGEN_PK -- foreign key
> IDENTIFIED_DATE
> .....
>
> 
> Be a better design?

        I know it's just a rethorical question, but I couldn't avoid
answering: yes!

        As usual, complexity is better avoided by trying to reach the
essentials, not by adding layers -- this being one of the reasons why OO
is doomed as a DBMS approach.  For example, most NULLs can be dispensed by
good modelling in general (and full normalisation in particular), and many
triggers can be avoided by creating an equivalent but far simpler
constraint.  That's part of the reasons why SQL is ultimately doomed and
we should all be thinking about using relational systems.


--
Leandro Guimarães Faria Corcete DUTRA
Administrador de Bases de Dados      +55 (11) 4390 5383
Toyota do Brasil Ltda              ldutra@toyota.com.br
São Bernardo do Campo, SP                        BRASIL


This message (including any attachments) is confidential and may be privileged and intended solely for the use of the person/entity to whom it is addressed. If you have received it by mistake please notify the sender by returning via e-mail as well as delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is prohibited. Please note that e-mails are susceptible to change. TOYOTA DO BRASIL LTDA (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication, neither for personal, nonbusiness related information nor opinion sent through this email or even for any delay in its receipt or damage to your system. TOYOTA DO BRASIL LTDA (or its group companies) does not guarantee that the integrity of this communication has been kept nor that this communication is free of viruses, interceptions or interference.
--
http://www.freelists.org/webpage/oracle-l

