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
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_EDUCATIONALINSTITUTION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_EDUCATIONALINSTITUTION_DATECHANGED |
DATECHANGED |
|
|
|
| PK_EDUCATIONALINSTITUTION |
ID |
yes |
yes |
|
Triggers
Referenced by