From oracle-l-bounce@freelists.org  Mon Aug  8 07:31:48 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 j78CVm2c018338
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 07:31:48 -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 j78CVZIP018296
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 07:31:35 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A0BAD1DD310;
 Mon,  8 Aug 2005 07:29:24 -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 02077-10; Mon, 8 Aug 2005 07:29:24 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1A82A1DCA26;
 Mon,  8 Aug 2005 07:29:24 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=izfXVeUFmo85iVRk3+MqN44hwsmin0VI8G58+lWaxL8opTgHeKQnC2oraM2HeEzBS9IeaKZpWc5Gh8bWT53ICaoS/YlwnfeZmc24eL0sHVje30VIeaIh7hjRhsOJKtbUArb9IwH6VhWEJ9zI1y+oVKQzS56wdcAdJ/l7REQEbPw=
Message-ID: <7765c897050808052732e9d7f3@mail.gmail.com>
Date: Mon, 8 Aug 2005 13:27:29 +0100
From: Niall Litchfield <niall.litchfield@gmail.com>
To: jim_kennedy@mentor.com
Subject: Re: Counterquestion - is Oracle a He or a She - or an It or a hermaphrodite
Cc: psinger1@chartermi.net, oracle-l@freelists.org
In-Reply-To: <EF25DB6D87DD1A469C80A312C63C3B4C0426DDC9@SVR-ORW-EXC-07.mgc.mentorg.com>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_4084_4946148.1123504049240"
References: <EF25DB6D87DD1A469C80A312C63C3B4C0426DDC9@SVR-ORW-EXC-07.mgc.mentorg.com>
X-archive-position: 23529
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: niall.litchfield@gmail.com
Precedence: normal
Reply-To: niall.litchfield@gmail.com
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=-2.9 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE 
 autolearn=ham version=2.63
------=_Part_4084_4946148.1123504049240
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Comments below
On 8/6/05, Kennedy, Jim <jim_kennedy@mentor.com> wrote:=20
>=20
>=20
>=20
> I explain NULLS in the following manner.
>=20
> Imagine a medical application where your medical data is stored in a
> database. Imagine that your Dr. has never asked you if you have
> allergies or not. Further imagine that you become unconcouse and go to
> the emergency room. The Dr. in the emergency room looks at your
> electronic medical data. Given the information in your electronic chart
> what should the Dr. assume about your allergic reactions?:
> A. You are Alergic to something.
> B. You are not allergic to anything.
> C. It is unknown if you are or are not allergic to anything.
>=20
> The Dr. should assume C. You have not been asked the question so the
> data in that column is NULL and the Dr. should make NO assumptions about
> your medical condition visa vis allergys. In medicine even if they
> asked you the question "Are you allergic to anything?" and you answered
> "No" the correct value to store is NKA - No Known Allergies. After
> this explanation most people understand what a NULL is.
> Jim

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

Be a better design? Then the doctor would just pull up a list of known=20
allergies (which might of course be empty). This is a lot different, and I'=
d=20
argue better, than pulling up a NKA or NULL value.=20

--=20
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com

------=_Part_4084_4946148.1123504049240
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Comments below<br>
<div><span class=3D"gmail_quote">On 8/6/05, <b class=3D"gmail_sendername">K=
ennedy, Jim</b> &lt;<a href=3D"mailto:jim_kennedy@mentor.com">jim_kennedy@m=
entor.com</a>&gt; wrote:</span>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><br>I explain NULLS in the f=
ollowing manner.<br><br>Imagine a medical application where your medical da=
ta is stored in a
<br>database.&nbsp;&nbsp;Imagine that your Dr. has never asked you if you h=
ave<br>allergies or not.&nbsp;&nbsp;Further imagine that you become unconco=
use and go to<br>the emergency room.&nbsp;&nbsp;The Dr. in the emergency ro=
om looks at your<br>electronic medical data.&nbsp;&nbsp;Given the informati=
on in your electronic chart
<br>what should the Dr. assume about your allergic reactions?:<br>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; A. You are Alergic to something.<br>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; B. You are not allergic to anything.<br>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; C. It is unknown if you are or are not allergic=
 to anything.
<br><br>The Dr. should assume C.&nbsp;&nbsp;You have not been asked the que=
stion so the<br>data in that column is NULL and the Dr. should make NO assu=
mptions about<br>your medical condition visa vis allergys.&nbsp;&nbsp;In me=
dicine even if they
<br>asked you the question &quot;Are you allergic to anything?&quot; and yo=
u answered<br>&quot;No&quot;&nbsp;&nbsp;the correct value to store is NKA -=
 No Known Allergies.&nbsp;&nbsp;After<br>this explanation most people under=
stand what a NULL is.
<br>Jim</blockquote>
<div>&nbsp;</div>
<div>Isn't this a great example of how a better design is a better solution=
? </div>
<div>Wouldn't </div>
<div>&nbsp;</div>
<div>PATIENT</div>
<div>=3D=3D=3D=3D=3D=3D=3D</div>
<div>PATIENT_PK</div>
<div>....................</div>
<div>&nbsp;</div>
<div>ALLERGEN</div>
<div>=3D=3D=3D=3D=3D=3D=3D=3D=3D</div>
<div>ALLERGEN_PK</div>
<div>........................</div>
<div>&nbsp;</div>
<div>KNOWN_ALLERGIES</div>
<div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div>
<div>PATIENT_PK&nbsp; -- foreign key</div>
<div>ALLERGEN_PK -- foreign key</div>
<div>IDENTIFIED_DATE</div>
<div>.....</div><br>&nbsp;</div>Be a better design? Then the doctor would j=
ust pull&nbsp;up a list of known allergies (which might of course be empty)=
. This&nbsp;is a lot different, and I'd argue better, than pulling up a NKA=
 or NULL value.&nbsp;&nbsp;
<br><br>-- <br>Niall Litchfield<br>Oracle DBA<br><a href=3D"http://www.nial=
l.litchfield.dial.pipex.com">http://www.niall.litchfield.dial.pipex.com</a>=
=20

------=_Part_4084_4946148.1123504049240--
--
http://www.freelists.org/webpage/oracle-l

