EDUCATIONALINSTITUTION

This table contains information about educational institutions.

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.
FICECODE nvarchar(50) Default = '' Code issued by the US government.
CLASSIFICATIONCODE tinyint Default = 0 Indicates the classification of the educational institution.
CLASSIFICATION nvarchar(7) (Computed) yes CASE [CLASSIFICATIONCODE] WHEN 0 THEN N'School' WHEN 1 THEN N'College' WHEN 2 THEN N'Other' END Provides a translation for the 'CLASSIFICATIONCODE' field.
NAME nvarchar(100) (Computed) yes dbo.UFN_EDUCATIONALINSTITUTION_GETNAMEFROMCONSTITUENT(ID) The name of this educational institution.
ISAFFILIATED bit (Computed) yes dbo.UFN_CONSTITUENT_ISSCHOOL(ID) Denotes whether this record is of an affiliated institution.
CITY nvarchar(150) (Computed) yes dbo.UFN_EDUCATIONALINSTITUTION_GETCITYFROMCONSTITUENT(ID) The city the institution is located.
STATEID uniqueidentifier (Computed) yes dbo.UFN_EDUCATIONALINSTITUTION_GETSTATEFROMCONSTITUENT(ID) A foreign key to the state table.
COUNTRYID uniqueidentifier (Computed) yes dbo.UFN_EDUCATIONALINSTITUTION_GETCOUNTRYFROMCONSTITUENT(ID) A foreign key to the country table.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier CONSTITUENT.LOCALID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
TYPECODEID uniqueidentifier yes EDUCATIONALHISTORYTYPECODE.ID Type of the educational institution record.
LOCATIONCODEID uniqueidentifier yes EDUCATIONALINSTITUTIONLOCATIONCODE.ID Location of the educational institution record.
INFOSOURCECODEID uniqueidentifier yes INFOSOURCECODE.ID Information source of the educational institution record.

Indexes

Index Name Fields Unique Primary Clustered
IX_EDUCATIONALINSTITUTION_DATEADDED DATEADDED yes
IX_EDUCATIONALINSTITUTION_DATECHANGED DATECHANGED
PK_EDUCATIONALINSTITUTION ID yes yes

Triggers

Trigger Name Description
TR_EDUCATIONALINSTITUTION_DELETE_BBNCCODETABLEIDMAP
TR_EDUCATIONALINSTITUTION_INSERT_BBNCCODETABLEIDMAP
TR_EDUCATIONALINSTITUTION_AUDIT_UPDATE
TR_EDUCATIONALINSTITUTION_AUDIT_DELETE

Referenced by

Referenced by Field
ACADEMICCATALOGPROGRAM EDUCATIONALINSTITUTIONID
BATCHCONSTITUENT EDUCATIONALHISTORY_EDUCATIONALINSTITUTIONID
BATCHCONSTITUENTEDUCATIONALINVOLVEMENT EDUCATIONALINSTITUTIONID
BATCHEDUCATIONALHISTORYUPDATE EDUCATIONALINSTITUTIONID
EDUCATIONALHISTORY EDUCATIONALINSTITUTIONID
EDUCATIONALINVOLVEMENT EDUCATIONALINSTITUTIONID
SCHOOL ID