STUDENTSKILLCOURSE

This table links skills and courses that use them.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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.
STARTDATE datetime The date a skill can begin being used.
ENDDATE datetime yes The date a skill can stop being used.
SEQUENCE int Default = 0 Allows the user to sequence the skills on a course.

Foreign Keys

Foreign Key Field Type Null Notes Description
COURSEID uniqueidentifier COURSE.ID The course using this skill.
STUDENTSKILLID uniqueidentifier STUDENTSKILL.ID The skill being linked to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_STUDENTSKILLCOURSE_DATEADDED DATEADDED yes
IX_STUDENTSKILLCOURSE_DATECHANGED DATECHANGED
PK_STUDENTSKILLCOURSE ID yes yes
UIX_STUDENTSKILLCOURSE_SEQUENCE_COURSEID SEQUENCE, COURSEID yes
UIX_STUDENTSKILLCOURSE_STUDENTSKILLID_COURSEID STUDENTSKILLID, COURSEID yes

Triggers

Trigger Name Description
TR_STUDENTSKILLCOURSE_AUDIT_DELETE
TR_STUDENTSKILLCOURSE_AUDIT_UPDATE

Referenced by

Referenced by Field
STUDENTSKILLCOURSEMARKINGCOLUMN STUDENTSKILLCOURSEID