Table TstCtgry

Description of table TstCtgry

This is an associate table between Tst and Ctgry that is used to document the score reporting categories related to a specific offering of a test.


Code preview of table TstCtgry

use StudentCentered
go

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

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

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

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

/*==============================================================*/
/* Table: TstCtgry */
/*==============================================================*/
create table dbo.TstCtgry (
ID int not null,
Tst_ID int not null,
Ctgry_ID int not null,
EffDt datetime not null default getdate(),
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(),
EndDt datetime null,
constraint TstCtgry_PK primary key nonclustered (ID)
on SmallIDX
)
on SmallTBL
go

/*==============================================================*/
/* Index: Tst_FK */
/*==============================================================*/
create index Tst_FK on dbo.TstCtgry (
Tst_ID
)
on SmallIDX
go

/*==============================================================*/
/* Index: Ctgry_FK */
/*==============================================================*/
create index Ctgry_FK on dbo.TstCtgry (
Ctgry_ID
)
on SmallIDX
go

/*==============================================================*/
/* Index: UnqTstCtgry_IDX */
/*==============================================================*/
create index UnqTstCtgry_IDX on dbo.TstCtgry (
Tst_ID,
Ctgry_ID
)
on SmallIDX
go


List of columns of the table TstCtgry

Name

Code

Test Category Identifier

ID

Test Identifier

Tst_ID

Category Identifier

Ctgry_ID

Effective Date

EffDt

Creator Identifier

CrtrID

Create Date

CrtDt

Update Identifier

UpdtID

Update Date

UpdtDt

End Date

EndDt


Column ID of the table TstCtgry

Card of the column ID of the table TstCtgry

Name

Test Category Identifier

Code

ID

Data Type

int

Mandatory

TRUE


Description of the column ID of the table TstCtgry

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


Column Tst_ID of the table TstCtgry

Card of the column Tst_ID of the table TstCtgry

Name

Test Identifier

Code

Tst_ID

Data Type

int

Mandatory

TRUE


Description of the column Tst_ID of the table TstCtgry

Foreign key to the Tst table.


Column Ctgry_ID of the table TstCtgry

Card of the column Ctgry_ID of the table TstCtgry

Name

Category Identifier

Code

Ctgry_ID

Data Type

int

Mandatory

TRUE


Description of the column Ctgry_ID of the table TstCtgry

Foreign key to the Ctgry table.


Column EffDt of the table TstCtgry

Card of the column EffDt of the table TstCtgry

Name

Effective Date

Code

EffDt

Data Type

datetime

Mandatory

TRUE


Description of the column EffDt of the table TstCtgry

The date that this row of data becomes effective.


Column CrtrID of the table TstCtgry

Card of the column CrtrID of the table TstCtgry

Name

Creator Identifier

Code

CrtrID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column CrtrID of the table TstCtgry

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


Column CrtDt of the table TstCtgry

Card of the column CrtDt of the table TstCtgry

Name

Create Date

Code

CrtDt

Data Type

datetime

Mandatory

TRUE


Description of the column CrtDt of the table TstCtgry

The date the source row of data was created.


Column UpdtID of the table TstCtgry

Card of the column UpdtID of the table TstCtgry

Name

Update Identifier

Code

UpdtID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column UpdtID of the table TstCtgry

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


Column UpdtDt of the table TstCtgry

Card of the column UpdtDt of the table TstCtgry

Name

Update Date

Code

UpdtDt

Data Type

datetime

Mandatory

TRUE


Description of the column UpdtDt of the table TstCtgry

The date of the last update.


Column EndDt of the table TstCtgry

Card of the column EndDt of the table TstCtgry

Name

End Date

Code

EndDt

Data Type

datetime

Mandatory

FALSE


Description of the column EndDt of the table TstCtgry

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