Re: An array within a table--Break into 1-to-1 mini tables or separate rows?



Normalize, Normalize, Normalize,.. ;-)
Whether you store Null values depends on your business rules.

--
Duane Hookom
MS Access MVP

"Todd" <cashlord@xxxxxxxxxxx> wrote in message
news:ulzMBstBHHA.4428@xxxxxxxxxxxxxxxxxxxxxxx
I have a table that needs to hold the monthly grade of our members
locations. There are 6 aspects to this grade. Now, each inspection will
always give a grade for each of the 6 aspects. Do I keep the 6 columns in
the main table? Or, do I create a child table with each row holding the
grade for each aspect?

AND, if the grade is zero, do I not add the row for that aspect? IE: when
I get a null row while looking for the row for that aspect, do I count the
value as zero?

Should I just keep all 6 aspects within the main table?

Also, there are 4 other groups of grades like this. So, in reality there
are 40 columns like this!!

The un-normalized table:
ID PK
Name Varchar
Age Int
Grade_CommunicationRating Int
Grade_Cleanliness Int
Grade_TaxCompliance Int
Grade_Staffing Int
Grade_Insurance Int
Grade_Stocking Int
Grade_OVERALL Int


Normalized:

MAIN TABLE:
ID PK
Name Varchar
Age Int

GRADES TABLE:
ID PK/FK
GradeType PK
Rating Int


Thanks for your help!





.



Relevant Pages

  • Programming project help
    ... number of satisfactory scores the number of unsatisfactory ... scores and the number of invalid scores (less than 0 or greater ... int main ... outstanding = grade; ...
    (comp.lang.c)
  • programming project, revise
    ... number of satisfactory scores the number of unsatisfactory ... int main ... int outstanding, satisfactory, unsatisfactory, invalid; ... outstanding = grade; ...
    (comp.lang.c)
  • Using arrays in C.
    ... the grade. ... int enterInfo ... cin>> Stud_Num; ... cin>> response1; ...
    (comp.lang.c)
  • Re: An array within a table--Break into 1-to-1 mini tables or separate rows?
    ... multiple rows for keeping the grade values. ... User interface should not drive table structures. ... The reason I kept leaning towards putting the six grade fields into 1 ... Grade_CommunicationRating Int ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Programming project help
    ... should count and print the number of outstanding scores the ... scores and the number of invalid scores (less than 0 or greater ... int main ... outstanding = grade; ...
    (comp.lang.c)