Login   |   ITaP Home > Business Technology > IRM > Data Standards

 

Naming and Sizing Conventions

Consistent usage of names and data types in an open database environment is important for user operability as well as administrative ease. Where users are free to run ad-hoc queries against one or multiple databases, the users should be able to expect consistent implementation of names and data types. Names and data types should be consistent both between and within databases.

Between databases, it is expected that certain core data elements will be named and sized the same between databases, regardless of the form (OLTP, ODS, Data Warehouse). Core data is defined as data which is shared between multiple databases and/or departments within the university. The Data Stewards will have the ultimate authority to determine what is considered to be core data. Listed below are initial examples of Core Data Elements, their Oracle Data Type and Size, and their Descriptions. This listing is not considered to be complete. It was arrived at after a brief review of the current major data structures. This listing may be considered a starting point for the Data Stewards in the development of a final listing.

 

Core Data Element
Oracle Data Type and Size
Description
Example

ACADEMIC_SESSION_CODE

VARCHAR2(1)

A code indicating one of Purdue's academic sessions.

1, 2, S

ACADEMIC_YEAR

VARCHAR2(7)

A Purdue academic year.

1997-98

ACCOUNT_NAME

VARCHAR2(40)

The name of an account.

 

ACCOUNT_NUMBER

VARCHAR2(13)

The number of an account.

010 1061-0000

BIRTH_DATE

DATE

A person's date of birth.

25-DEC-1997

CAMPUS_CODE

VARCHAR2(1)

The code associated with a Purdue University campus.

 

CAMPUS_NAME

VARCHAR2(26)

The name of a Purdue University campus.

 

COURSE_NUMBER

VARCHAR2(4)

The number associated with a course.

 

DEPARTMENT_CODE

VARCHAR2(4)

The code associated with a Purdue University department.

 

DEPARTMENT_NAME

VARCHAR2(40)

The name or title of a Purdue University department.

 

DEPARTMENT_REFERENCE_CODE

VARCHAR2(5)

A departmental reference number/code.

 

ETHNIC_GROUP

VARCHAR2(35)

The ethnic group of which a person is a part.

 

FISCAL_YEAR

VARCHAR2(7)

A Purdue fiscal year.

1997-98

FUND

VARCHAR2(3)

An accounting fund.

 

GENDER

VARCHAR2(12)

A person's gender.

Female, Male, Not Reported

MARITAL_STATUS

VARCHAR2(10)

A person's marital status.

 

NAME_FIRST

VARCHAR2(35)

The first name of a person.

 

NAME_LAST

VARCHAR2(35)

The last name of a person.

 

NAME_MIDDLE

VARCHAR2(35)

The middle name of a person.

 

NAME_SUFFIX

VARCHAR2(10)

A person's suffix, such as Jr., Sr., Esq., etc.

 

NAME_TITLE

VARCHAR2(??)

A person's title, such as Mr., Mrs., Major, etc.

 

PROJECT

VARCHAR2(4)

An accounting project.

 

RESIDENCE_CODE

VARCHAR2(3)

The code describing a person's geographical area of residence.

 

SUBJECT_CODE

VARCHAR2(4)

The code associated with a course's subject.

 

SUBJECT_NAME

VARCHAR2(30)

The name of a course's subject.

 

VETERAN_FLAG

VARCHAR2(3)

Indicates if a person is a US military veteran or not.

 

VISA_TYPE

VARCHAR2(27)

The type of visa possessed by a person.

 

xxxxx_CITY

VARCHAR2(25)

The city name of a person's particular address where the " xxxxx" is replaced with the type of the address. For instance, HOME_CITY or LOCAL_CITY.

 

xxxxx_COUNTRY

VARCHAR2(25)

The country of a person's particular address where the " xxxxx" is replaced with the type of the address. For instance, HOME_COUNTRY or BUSINESS_COUNTRY.

 

xxxxx_STATE_CODE

VARCHAR2(2)

The state code of a person's particular address where the "xxxxx" is replaced with the type of the address. For instance, HOME_STATE_CODE or LOCAL_STATE_CODE.

 

xxxxx_STREET1

VARCHAR2(25)

The first line of a person's particular street address where the "xxxxx" is replaced with the type of the address. For instance, HOME_ADDRESS1 or LOCAL_ADDRESS1.

 

xxxxx_STREET2

VARCHAR2(25)

The second line of a person's particular street address where the "xxxxx" is replaced with the type of the address. For instance, HOME_ADDRESS2 or LOCAL_ADDRESS2.

 

xxxxx_ZIP_CODE

VARCHAR2(10)

The zip code of a person's particular address where the "xxxxx" is replaced with the type of the address. For instance, HOME_ZIP_CODE or LOCAL_ZIP_CODE.

 

Additional Naming and Sizing Standards

  • For alphanumeric fields, the VARCHAR2 data type should always be used instead of the CHAR datatype.
  • Oracle's maximum length for field names is 30 characters.
  • All fields which contain a flag (such as "YES/NO" fields) must have the word, "FLAG," appended to their name.
  • All fields which contain a code (such as STATE_CODE, CAMPUS_CODE, etc.) must have the word, "CODE" appended to their name.
  • Fields which are not a flag or a code field should not have the associated word appended to their title.
  • Field names, which are not listed in the above table, should be consistent within an application.
  • Every effort should be made to make field names as descriptive as possible. This is especially important in an ad hoc database.