Table Ctgry

Description of table Ctgry

The name of score reporting categories (SRC) are stored here related to the subject and test year to which they belong. There is also a Cd column which contains the ordinal position of the SRC within the received data for detail SRC's and for summary SRC's the type of summary (S = Survey Total, T = Total).


Code preview of table Ctgry

use StudentCentered
go

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

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

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

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

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

/*==============================================================*/
/* Table: Ctgry */
/*==============================================================*/
create table dbo.Ctgry (
ID int not null,
Nm varchar(100) not null,
Cd varchar(10) null,
SbjctCd char(2) null,
TstYr varchar(4) 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 Ctgry_PK primary key nonclustered (ID)
on SmallIDX
)
on SmallTBL
go

/*==============================================================*/
/* Index: Nm_IDX */
/*==============================================================*/
create index Nm_IDX on dbo.Ctgry (
Nm
)
on SmallIDX
go

/*==============================================================*/
/* Index: Cd_IDX */
/*==============================================================*/
create index Cd_IDX on dbo.Ctgry (
Cd
)
on SmallIDX
go

/*==============================================================*/
/* Index: EffDt_IDX */
/*==============================================================*/
create index EffDt_IDX on dbo.Ctgry (
EffDt
)
on SmallIDX
go

/*==============================================================*/
/* Index: EndDt_IDX */
/*==============================================================*/
create index EndDt_IDX on dbo.Ctgry (
EndDt
)
on SmallIDX
go


List of columns of the table Ctgry

Name

Code

Category Identifier

ID

Category Name

Nm

Category Code

Cd

Subject Code

SbjctCd

Test Year

TstYr

Effective Date

EffDt

Creator Identifier

CrtrID

Create Date

CrtDt

Update Identifier

UpdtID

Update Date

UpdtDt

End Date

EndDt


Column ID of the table Ctgry

Card of the column ID of the table Ctgry

Name

Category Identifier

Code

ID

Data Type

int

Mandatory

TRUE


Description of the column ID of the table Ctgry

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


Column Nm of the table Ctgry

Card of the column Nm of the table Ctgry

Name

Category Name

Code

Nm

Data Type

varchar(100)

Mandatory

TRUE


Description of the column Nm of the table Ctgry

The name of the category (aka Score Reporting Category).


Column Cd of the table Ctgry

Card of the column Cd of the table Ctgry

Name

Category Code

Code

Cd

Data Type

varchar(10)

Mandatory

FALSE


Description of the column Cd of the table Ctgry

The order in which the columns containing scores and related information appear in the test results from the vendor.


Column SbjctCd of the table Ctgry

Card of the column SbjctCd of the table Ctgry

Name

Subject Code

Code

SbjctCd

Data Type

char(2)

Mandatory

FALSE


Description of the column SbjctCd of the table Ctgry

A two digit abbeviation for the test subject.


Column TstYr of the table Ctgry

Card of the column TstYr of the table Ctgry

Name

Test Year

Code

TstYr

Data Type

varchar(4)

Mandatory

FALSE


Description of the column TstYr of the table Ctgry

Year the test was offered.


Column EffDt of the table Ctgry

Card of the column EffDt of the table Ctgry

Name

Effective Date

Code

EffDt

Data Type

datetime

Mandatory

TRUE


Description of the column EffDt of the table Ctgry

The date that this row of data becomes effective.


Column CrtrID of the table Ctgry

Card of the column CrtrID of the table Ctgry

Name

Creator Identifier

Code

CrtrID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column CrtrID of the table Ctgry

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


Column CrtDt of the table Ctgry

Card of the column CrtDt of the table Ctgry

Name

Create Date

Code

CrtDt

Data Type

datetime

Mandatory

TRUE


Description of the column CrtDt of the table Ctgry

The date the source row of data was created.


Column UpdtID of the table Ctgry

Card of the column UpdtID of the table Ctgry

Name

Update Identifier

Code

UpdtID

Data Type

varchar(18)

Mandatory

TRUE


Description of the column UpdtID of the table Ctgry

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


Column UpdtDt of the table Ctgry

Card of the column UpdtDt of the table Ctgry

Name

Update Date

Code

UpdtDt

Data Type

datetime

Mandatory

TRUE


Description of the column UpdtDt of the table Ctgry

The date of the last update.


Column EndDt of the table Ctgry

Card of the column EndDt of the table Ctgry

Name

End Date

Code

EndDt

Data Type

datetime

Mandatory

FALSE


Description of the column EndDt of the table Ctgry

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