Table EventInst

Description of table EventInst

This table contains the institution identifiers and the type of institution as related to the test. The types of institutions are Attending District, Attending School, Resident District, Resident school, Participating District and Participating School.


Code preview of table EventInst

use StudentCentered
go

if exists (select 1
from sysindexes
where id = object_id('dbo.EventInst')
and name = 'InstTyp_FK'
and indid > 0
and indid < 255)
drop index dbo.EventInst.InstTyp_FK
go

if exists (select 1
from sysindexes
where id = object_id('dbo.EventInst')
and name = 'UnqTstEvent_FK'
and indid > 0
and indid < 255)
drop index dbo.EventInst.UnqTstEvent_FK
go

if exists (select 1
from sysobjects
where id = object_id('dbo.EventInst')
and type = 'U')
drop table dbo.EventInst
go

/*==============================================================*/
/* Table: EventInst */
/*==============================================================*/
create table dbo.EventInst (
ID int not null,
SMFConfig_ID int null,
UnqTstEvent_ID int null,
InstID int not null,
InstTyp_ID int not null,
PrvdInstNm varchar(40) null,
UpdtID varchar(18) null,
UpdtDt datetime null,
CrtrID varchar(18) null,
CrtDt datetime null,
EffDt datetime not null default getdate(),
EndDt datetime null,
LoadSeq_ID int null,
LoadDt datetime null,
constraint EventInst_PK primary key nonclustered (ID)
on LargeIDX
)
on LargeTBL
go

/*==============================================================*/
/* Index: UnqTstEvent_FK */
/*==============================================================*/
create index UnqTstEvent_FK on dbo.EventInst (
UnqTstEvent_ID,
SMFConfig_ID
)
on LargeIDX
go

/*==============================================================*/
/* Index: InstTyp_FK */
/*==============================================================*/
create index InstTyp_FK on dbo.EventInst (
InstTyp_ID
)
on LargeIDX
go


List of columns of the table EventInst

Name

Code

Event Institution Identifier

ID

SMFConfig_ID

SMFConfig_ID

Unique Test Event Identifier

UnqTstEvent_ID

Institution Identifier

InstID

Institution Type Identifier

InstTyp_ID

Provided Institution Name

PrvdInstNm

Update Identifier

UpdtID

Update Date

UpdtDt

Creator Identifier

CrtrID

Create Date

CrtDt

Effective Date

EffDt

End Date

EndDt

LoadSeq_ID

LoadSeq_ID

LoadDt

LoadDt


Column ID of the table EventInst

Card of the column ID of the table EventInst

Name

Event Institution Identifier

Code

ID

Data Type

int

Mandatory

TRUE


Description of the column ID of the table EventInst

Unique ID assigned and maintained by the database for the EventInst table.


Column SMFConfig_ID of the table EventInst

Card of the column SMFConfig_ID of the table EventInst

Name

SMFConfig_ID

Code

SMFConfig_ID

Data Type

int

Mandatory

FALSE


Description of the column SMFConfig_ID of the table EventInst

Foreign key from the Standard Message Format Configuration (SMFConfig) table. This key represents a subject and year combination.


Column UnqTstEvent_ID of the table EventInst

Card of the column UnqTstEvent_ID of the table EventInst

Name

Unique Test Event Identifier

Code

UnqTstEvent_ID

Data Type

int

Mandatory

FALSE


Description of the column UnqTstEvent_ID of the table EventInst

Foreign key from the Unique Test Event (UnqTstEvent) table. This identifier is used to locate all versions of a given test in tables throughout the StudentCentered database.


Column InstID of the table EventInst

Card of the column InstID of the table EventInst

Name

Institution Identifier

Code

InstID

Data Type

int

Mandatory

TRUE


Description of the column InstID of the table EventInst

ID assigned and maintained by the Institution database.


Column InstTyp_ID of the table EventInst

Card of the column InstTyp_ID of the table EventInst

Name

Institution Type Identifier

Code

InstTyp_ID

Data Type

int

Mandatory

TRUE


Description of the column InstTyp_ID of the table EventInst

The type of institution the reported identifier is acting as. There are several types we presently load such as: Attending District, Attending School, Resident District, Resident School, Participating District and Participating School. This is a foreign key from the MstrCd table where the Institution Type Identifiers are stored.


Column PrvdInstNm of the table EventInst

Card of the column PrvdInstNm of the table EventInst

Name

Provided Institution Name

Code

PrvdInstNm

Data Type

varchar(40)

Mandatory

FALSE


Description of the column PrvdInstNm of the table EventInst

This is the name at the time the data was loaded to StudentCentered for the given Institution Identifier from the Institution database.


Column UpdtID of the table EventInst

Card of the column UpdtID of the table EventInst

Name

Update Identifier

Code

UpdtID

Data Type

varchar(18)

Mandatory

FALSE


Description of the column UpdtID of the table EventInst

The user identification of the person or process that last updated the record in StudentCenteredStaging.


Column UpdtDt of the table EventInst

Card of the column UpdtDt of the table EventInst

Name

Update Date

Code

UpdtDt

Data Type

datetime

Mandatory

FALSE


Description of the column UpdtDt of the table EventInst

The date of the last update to the source row of data from StudentCenteredStaging.


Column CrtrID of the table EventInst

Card of the column CrtrID of the table EventInst

Name

Creator Identifier

Code

CrtrID

Data Type

varchar(18)

Mandatory

FALSE


Description of the column CrtrID of the table EventInst

The user identification of the person or process that created the record in StudentCenteredStaging.


Column CrtDt of the table EventInst

Card of the column CrtDt of the table EventInst

Name

Create Date

Code

CrtDt

Data Type

datetime

Mandatory

FALSE


Description of the column CrtDt of the table EventInst

The date the source row of data was created in StudentCenteredStaging.


Column EffDt of the table EventInst

Card of the column EffDt of the table EventInst

Name

Effective Date

Code

EffDt

Data Type

datetime

Mandatory

TRUE


Description of the column EffDt of the table EventInst

The date that this row of data becomes effective in StudentCentered.


Column EndDt of the table EventInst

Card of the column EndDt of the table EventInst

Name

End Date

Code

EndDt

Data Type

datetime

Mandatory

FALSE


Description of the column EndDt of the table EventInst

The date that this row of data ceases to be effective in StudentCentered.


Column LoadSeq_ID of the table EventInst

Card of the column LoadSeq_ID of the table EventInst

Name

LoadSeq_ID

Code

LoadSeq_ID

Data Type

int

Mandatory

FALSE


Description of the column LoadSeq_ID of the table EventInst

Foreign key from the Load Sequence (LoadSeq) table. Each load receives a unique identifier.


Column LoadDt of the table EventInst

Card of the column LoadDt of the table EventInst

Name

LoadDt

Code

LoadDt

Data Type

datetime

Mandatory

FALSE


Description of the column LoadDt of the table EventInst

The date the data was loaded into StudentCentered.