Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 GRADETYPECODE tinyint   Default = 2 1=Grade, 2=Numeric
 GRADETYPE nvarchar(7) (Computed) CASE [GRADETYPECODE] WHEN 1 THEN N'Grade' WHEN 2 THEN N'Numeric' END Provides a translation for the 'GRADETYPECODE' field.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.
 NUMERICGRADE decimal(14, 2)   Default = 0 The numeric grade received.
 GRADEISBLANK int (Computed) case GRADETYPECODE when 1 then case when TRANSLATIONTABLEGRADEID is null then 1 else 0 end when 2 then case NUMERICGRADE when -1 then 1 else 0 end end When true, indicates that no grade is stored on this record.
 NUMERICGRADEVALUE decimal(14, 2) (Computed) case GRADETYPECODE when 1 then null when 2 then case NUMERICGRADE when -1 then null else NUMERICGRADE end end The numeric grade received. Returns null if grade is letter grade or blank.

Foreign Key Field Type Null Notes Description
 STUDENTCLASSMEETINGGROUPID uniqueidentifier   STUDENTCLASSMEETINGGROUP.ID The student class meeting group for which this grade is awarded.
 COURSEGRADINGMARKINGCOLUMNID uniqueidentifier   COURSEGRADINGMARKINGCOLUMN.ID The course grading marking column for which this grade is awarded.
 TRANSLATIONTABLEGRADEID uniqueidentifier TRANSLATIONTABLEGRADE.ID The translation table grade corresponding to the letter grade received.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_STUDENTMARKINGCOLUMNGRADE_DATEADDED DATEADDED    
 IX_STUDENTMARKINGCOLUMNGRADE_DATECHANGED DATECHANGED      
 PK_STUDENTMARKINGCOLUMNGRADE ID  
 UIX_STUDENTMARKINGCOLUMNGRADE_STUDENTCLASSMEETINGGROUPID_COURSEGRADINGMARKINGCOLUMNID STUDENTCLASSMEETINGGROUPID, COURSEGRADINGMARKINGCOLUMNID    

Trigger Name Description
 TR_STUDENTMARKINGCOLUMNGRADE_AUDIT_UPDATE
 TR_STUDENTMARKINGCOLUMNGRADE_AUDIT_DELETE
 TR_STUDENTMARKINGCOLUMNGRADE_INSERTUPDATE_VALIDGRADES

Entity-Relationship diagram of this table