GRADINGSCALEGRADE

The grades and numeric equivalents of a grading scale.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GRADE nvarchar(10) Default = '' The character representation of the grade.
NUMERICEQUIVALENT decimal(20, 2) Default = 0 The numeric equivalent of the grade.
HIGHESTSCORE decimal(20, 2) yes Default = 0 The highest score in the range for which the grade applies.
LOWESTSCORE decimal(20, 2) yes Default = 0 The lowest score in the range for which the grade applies.
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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
GRADINGSCALEID uniqueidentifier GRADINGSCALE.ID The grading scale this grade is associated with.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_GRADINGSCALEGRADE_DATEADDED DATEADDED yes
IX_GRADINGSCALEGRADE_DATECHANGED DATECHANGED
PK_GRADINGSCALEGRADE ID yes yes
UIX_GRADINGSCALEGRADE_GRADINGSCALEID_GRADE GRADINGSCALEID, GRADE yes

Triggers

Trigger Name Description
TR_GRADINGSCALEGRADE_AUDIT_UPDATE
TR_GRADINGSCALEGRADE_AUDIT_DELETE