Table ValidMstrCd

Description of table ValidMstrCd

This table contains the meanings of the coded values given for a test event. For instance, if we were dealing with a Gender code of F, this table would indicate that for the specific year and subject the information is related to (established via SMFConfig_ID) that the coded value 'F' means Female.


Code preview of table ValidMstrCd

use StudentCentered
go

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

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

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

/*==============================================================*/
/* Table: ValidMstrCd */
/*==============================================================*/
create table dbo.ValidMstrCd (
ID int not null,
MstrCd_ID int not null,
SMFConfig_ID int not null,
Cd varchar(10) not null,
Nm varchar(100) not null,
CrtrID varchar(18) not null default suser_sname(),
CrtDt datetime not null default getdate(),
UpdtID varchar(18) not null default suser_sname(),
UpdtDt datetime not null default getdate(),
constraint ValidMstrCd_PK primary key nonclustered (ID)
on SmallIDX
)
on SmallTBL
go

/*==============================================================*/
/* Index: MstrCd_FK */
/*==============================================================*/
create index MstrCd_FK on dbo.ValidMstrCd (
MstrCd_ID
)
on SmallIDX
go

/*==============================================================*/
/* Index: SMFConfig_FK */
/*==============================================================*/
create index SMFConfig_FK on dbo.ValidMstrCd (
SMFConfig_ID
)
on SmallIDX
go


List of columns of the table ValidMstrCd

Name

Code

Valid Master Code Identifier

ID

Master Code Identifier

MstrCd_ID

Standard Message Format Configuration Identifier

SMFConfig_ID

Code

Cd

Name

Nm

Creator Identifier

CrtrID

Create Date

CrtDt

Update Identifier

UpdtID

Update Date

UpdtDt


Column ID of the table ValidMstrCd

Card of the column ID of the table ValidMstrCd

Name

Valid Master Code Identifier

Code

ID

Data Type

int

Mandatory

TRUE


Description of the column ID of the table ValidMstrCd

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


Column MstrCd_ID of the table ValidMstrCd

Card of the column MstrCd_ID of the table ValidMstrCd

Name

Master Code Identifier

Code

MstrCd_ID

Data Type

int

Mandatory

TRUE


Description of the column MstrCd_ID of the table ValidMstrCd

Foreign key to the MstrCd table.


Column SMFConfig_ID of the table ValidMstrCd

Card of the column SMFConfig_ID of the table ValidMstrCd

Name

Standard Message Format Configuration Identifier

Code

SMFConfig_ID

Data Type

int

Mandatory

TRUE


Description of the column SMFConfig_ID of the table ValidMstrCd

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


Column Cd of the table ValidMstrCd

Card of the column Cd of the table ValidMstrCd

Name

Code

Code

Cd

Data Type

varchar(10)

Mandatory

TRUE


Description of the column Cd of the table ValidMstrCd

Coded value for a related row from master codes (MstrCd).


Column Nm of the table ValidMstrCd

Card of the column Nm of the table ValidMstrCd

Name

Name

Code

Nm

Data Type

varchar(100)

Mandatory

TRUE


Description of the column Nm of the table ValidMstrCd

Meaning for the coded value.


Column CrtrID of the table ValidMstrCd

Card of the column CrtrID of the table ValidMstrCd

Name

Creator Identifier

Code

CrtrID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column CrtrID of the table ValidMstrCd

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


Column CrtDt of the table ValidMstrCd

Card of the column CrtDt of the table ValidMstrCd

Name

Create Date

Code

CrtDt

Data Type

datetime

Mandatory

TRUE


Description of the column CrtDt of the table ValidMstrCd

The date the source row of data was created.


Column UpdtID of the table ValidMstrCd

Card of the column UpdtID of the table ValidMstrCd

Name

Update Identifier

Code

UpdtID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column UpdtID of the table ValidMstrCd

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


Column UpdtDt of the table ValidMstrCd

Card of the column UpdtDt of the table ValidMstrCd

Name

Update Date

Code

UpdtDt

Data Type

datetime

Mandatory

TRUE


Description of the column UpdtDt of the table ValidMstrCd

The date of the last update.