STUDENTMARKINGCOLUMNGRADE
Grade received by a student for a specific Student Class Meeting Group and Marking Column
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
GRADETYPECODE |
tinyint |
|
Default = 2 |
1=Grade, 2=Numeric |
GRADETYPE |
nvarchar(7) (Computed) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
NUMERICGRADE |
decimal(14, 2) |
|
Default = 0 |
The numeric grade received. |
GRADEISBLANK |
int (Computed) |
yes |
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) |
yes |
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 Keys
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 |
yes |
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_STUDENTMARKINGCOLUMNGRADE_DATEADDED |
DATEADDED |
|
|
yes |
IX_STUDENTMARKINGCOLUMNGRADE_DATECHANGED |
DATECHANGED |
|
|
|
PK_STUDENTMARKINGCOLUMNGRADE |
ID |
yes |
yes |
|
UIX_STUDENTMARKINGCOLUMNGRADE_STUDENTCLASSMEETINGGROUPID_COURSEGRADINGMARKINGCOLUMNID |
STUDENTCLASSMEETINGGROUPID, COURSEGRADINGMARKINGCOLUMNID |
yes |
|
|
Triggers