T
Todd
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!
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!