Logical Attribute or not
Date: 17 Mar 2006 15:13:46 -0800
Message-ID: <1142637226.020160.319960_at_g10g2000cwb.googlegroups.com>
I am modeling a table based on the following form example.
Form Section: Mood
Use the following codes to indicate patterns of mood disorder.
0. Never present 1. Present in last 7 days and was present before 2. Present in last 7 days and was not present before
Mood disorders:
- Easily distracted
- Inability to sit still
- Unhappy
- Lethargic
Note that a response to each "Mood" indicator is mandatory. That is, "Easily distracted" must be codified using 0,1, or 2. On my logical model I have created an entity called Mood Disorder. It contains a code value pairing for the value and code. e.g. Code for "Easily distracted" of 1.
So, let's say Fred is assessed. The assessor would need to code
something for each disorder at the assessment. The physical
implementation would include 4 rows of data as follows:
I am getting some push back due to the fact each code value is
mandatory. The premise being that since each is mandatory that each
should be a logical attribute. I am thinking that would violate 3NF.
Value Code
==== ====
a 0
b 1
c 2
d 0
Thanks in advance. Received on Sat Mar 18 2006 - 00:13:46 CET