You are on page 1of 30

Data Bank Database (DB)2

Data Bank Database Documentation, Structure and Dictionary


Version 0.1
December 2013

Contents
Introduction .............................................................................................................................. 4
Organization .......................................................................................................................... 4
Table Layouts ......................................................................................................................... 4
How to Read a Table Definition ................................................................................................... 5
Table Constraints .................................................................................................................... 5
Computer Environment ............................................................................................................ 6
Lookup Tables ........................................................................................................................... 7
Description ........................................................................................................................... 7
Documentation ....................................................................................................................... 7
AREATYPE ....................................................................................................................... 7
BENMARK ........................................................................................................................ 7
CESCODE ......................................................................................................................... 7
CPISERIES......................................................................................................................... 8
CPISOURCE ...................................................................................................................... 8
CPITYPE........................................................................................................................... 8
GEOG .............................................................................................................................. 8
INDTYPES ........................................................................................................................ 9
MONTHS.......................................................................................................................... 9
NAICCODE ....................................................................................................................... 9
NAICDOM ....................................................................................................................... 10
NAICSECT ....................................................................................................................... 10
NAICSLVL ....................................................................................................................... 10
NAICSUPR ....................................................................................................................... 11
OWNERSHP..................................................................................................................... 11
PERIOD .......................................................................................................................... 11
PERIODTY....................................................................................................................... 11
POPSOURC ..................................................................................................................... 12
SERIESTITLES ................................................................................................................... 12
SUBGEOG ....................................................................................................................... 12
Data Tables .............................................................................................................................. 14
Data Bank Database version 0.1 | Introduction

Description .......................................................................................................................... 14
Documentation ...................................................................................................................... 14
CES ................................................................................................................................ 14
CPI ................................................................................................................................. 16
LABFORCE ...................................................................................................................... 18
QCEW ............................................................................................................................ 19
Crosswalk Tables ....................................................................................................................... 22
Description .......................................................................................................................... 22
Documentation ...................................................................................................................... 22
SICXNAICS ...................................................................................................................... 22
Administrative Tables ................................................................................................................. 23
Description .......................................................................................................................... 23
Documentation ...................................................................................................................... 23
INDCODES ...................................................................................................................... 23
Constraint Information ......................................................................................................... 23
SortOrderOwnership ........................................................................................................... 23
TABLLIST ........................................................................................................................ 24
TABLSRCE ....................................................................................................................... 24
SCHEDULE ...................................................................................................................... 24
Field Values ............................................................................................................................. 26
Description .......................................................................................................................... 26
Documentation ...................................................................................................................... 26
Appendix ................................................................................................................................ 30
Appendix A .......................................................................................................................... 30

Data Bank Database version 0.1 | Introduction

Introduction
The Data Bank Database (DB)2 is designed to hold New Mexico economic and demographic data and support the
mission of the Data Bank and the Bureau of Business and Economic Research at the University of New Mexico. The
driving need is to improve data services for researchers, students, economic developers, public policy makers and
New Mexicans. The database will need to accommodate changes needed by the various patrons. This documentation
is an important part of outlining the development, collection and dissemination of Data Bank data through the Data
Bank Database. Going forward, it is anticipated that the structure and processes will need to be continually updated
to incorporate new data and adapt to new technologies in order to accommodate a growing need for better
socioeconomic data dissemination.

Organization
This document is loosely based on the Workforce Information Database (WID) published by the Analyst Resource
Center (http://www.workforceinfodb.org/). Many of the economic and labor market information tables are
directly adopted from that standard for this database. Building off the WID allows the Data Bank to leverage national
standards for our local data needs. It also allows us to work closely with the state labor market information shop.
There will however be some data tables which will strictly be (DB)2 tables and not part of the WID.
Another difference from the WID documentation is that this documentation will include not only the table structures
but also data sources, meta data, release schedules, collection and conversion steps. The intention is to have a
working manual of operation as well as a data dictionary. This working manual idea should assist in quicker
development and provide training materials for staff.

Table Layouts
The table layouts for the Data Bank Database are presented in this document. They are organized into four types:
lookup tables, crosswalks, data tables, and administrative tables. The code lookup tables contain relatively constant
data that pertains mainly to descriptive data associated with classification codes. Lookup tables can also contain field
values that are to be used in populating the database. Field values are also listed in the Field value section of this
manual. The crosswalk tables are a subset of the lookup tables representing the relationships between various
classification codes. The data tables contain information about economic indicators, population demographics,
selected socioeconomic characteristics, and other data. These tables are intended to contain information that is
maintained on a regular basis by Data Bank personnel. The data tables section includes maintenance information as
well as the table layouts. The administrative tables are tables used to record database management activities as well as
tables that would be needed to provide application support.

Data Bank Database version 0.1 | Introduction

How to Read a Table Definition


Each table definition contains complete information about the structure of a table. Each definition includes: the name
of the table, a complete list of each column name and data type, complete constraint information, and short
descriptions of the columns. The following illustration identifies each component of a table definition.
Name of
Table.

List of
column
names.

areatype
Column
Stfips
areatype

A table containing identifiers for the geographic type, i.e., MSA, SDA, county,
city, township, etc.
Type
Constraint
Description
char(2)
Primary Key
State FIPS code
1
char(2)
Primary Key
The code for the geographical area the data
represent.

Areatyname
varchar(40)
Descriptive title of the areatype
Constraints Information
1 Foreign Key (areatype.stfips) references (stfipstb.stfips)
Data type of
column.

Constraint: Specifies whether this column is part of the


Primary Key or participates in one or more Foreign Keys.
Numbers in this column refer to Foreign Keys listed in
the Constraints Information section. This section
details information on each Foreign Key used in the table.
Each note indicates which table and columns are being
referenced. Also the Constraint Information will note any
triggers for the table.

Short description of
the data intended for
this column.

Table Constraints
The Constraint section of each table definition identifies all Primary Keys and Foreign Keys for the table. The
constraints for a table specify rules for data that will be stored in that table. These rules exist in the form of either
Primary Keys or Foreign Keys. The definitions of these terms appear below:
Primary Key: The Primary Key is a column or group of columns that shall always be (1) non-null and (2) unique.
Only one primary key exists for each table. A Primary Key constraint is enforced on a table so that each row in the
table can be uniquely identified.
Foreign Key: A Foreign Key is a column or group of columns where each value or group of values exists as a
Primary Key in another table. Foreign Key constraints are used so that data for a column or group of columns can be
validated against another table containing a list of valid values for that column or group of columns.
Throughout the table definitions, Primary Keys and Foreign Keys are used wherever possible to achieve the greatest
level of data quality. For example, in the table qcew, there is a column called ownership. By specifying a Foreign Key
constraint on the ownership column referencing the table ownershp, no row in the qcew table will ever contain a value
for ownership that does not already exist in the table ownershp. This protects the qcew table from ever containing invalid
ownership values.
Data Bank Database version 0.1 | Introduction

Table constraints information box can also contain trigger information. A trigger is a special kind of stored procedure
that goes into effect when you modify data in a specified table using one of the data modification operations
UPDATE, INSERT, or DELETE. Triggers are used to maintain the referential integrity of multi-code tables with any
changes that are made to the lookup tables.

Computer Environment
The expectation is that the (DB)2 will exist on the University of New Mexico Information Technology structure. MS
Access 2010 is what is available on local PC and where development is taking place. Drive M will also use MS Access
2010 for the test database. It is anticipated that a production database in a webserver environment could use MS SQL
or PHP. Migration to these other production platforms my pose some issues to be overcome. The migration of data
from the PC- based database to an unknown production database will need to be mapped and documented in the
future.

Data Bank Database version 0.1 | Introduction

Lookup Tables
Description
Tables in this section are standardized codes used by the data tables. Generally these tables have few changes and are
fairly static. Most tables are available from the National Crosswalk Service Center (http://www.xwalkcenter.org/)
which documents revisions. In a few cases such as benchmark or period table data is added as need each year.

Documentation
AREATYPE
areatype

A table containing identifiers for the geographic type, i.e., MSA, SDA, county, city,
township, etc.
Column
Type
Constraint
Description
stfips
char(2)
Primary Key
State FIPS code.
1
areatype
char(2)
Primary Key
Code describing type of geographic area: e.g.
county, service delivery area, MSA.
areatyname
varchar(40)
Descriptive title of the areatype.
Constraint Information
1 Foreign Key (areatype.stfips) references (stfipstb.stfips)

BENMARK
benmark
This table contains one record for every benchmark year.
Column
Type
Constraint
Description
benchmark
char(4)
Primary Key
Benchmark year used in the labforce and ces tables.
benchdesc
varchar(60)
Benchmark year description
Constraint Information
N/A

CESCODE
cescode

This table contains one record for each Current Employment Statistics code.
Column
Type
Constraint Description
stfips
char(2)
Primary Key State FIPS code.
1
seriescode
char(8)
Primary Key Industry Series code.
seriesdesc
varchar(2000)
Description of the industries comprising the
series.
seriesttls
varchar(60)
Short title used to identify industry division.
seriesttll
varchar(120)
Long title used to describe industry division.
Constraint Information
1 Foreign Key (cescode.stfips) references (stfipstb.stfips)

Data Bank Database version 0.1 | Lookup Tables

CPISERIES
cpiseries
Column
seriesid
Series title

Code describing the Consumer Price Index series title.


Type
Constraint
Description
char(6)
Primary Key
ID made by the BLS to categorize series cpi.
varchar(35)
Title of cpi series.

Constraint Information
NA

CPISOURCE
cpisource

Code containing source of Consumer Price Index data.


Column
Type
Constraint
Description
stfips
char(2)
Primary Key
State FIPS code.
1
cpisource
char(1)
Primary Key
Source code for cpi data.
cpisrcdesc
varchar(40)
Description of cpi source.
Constraint Information
1 Foreign Key (cpisource.stfips) references (stfipstb.stfips)

CPITYPE
cpitype

This table contains one record for every type of Consumer Price Index (CPI) measure.
Type
Constraint Description
char(2)
Primary Key State FIPS code.
1
cpitype
char(2)
Primary Key Two digit code assigned to the type of CPI measure.
cpititle
varchar(55)
Title of the CPI measure.
cpidesc
varchar(200)
Description of the CPI measure.
Constraint Information
1 Foreign Key (cpitype.stfips) references (stfipstb.stfips)
Column
stfips

GEOG
geog
Column
stfips
areatype
area
areaname
areadesc

A table containing geographic area descriptor records.


Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1
char(2)
Primary Key
Code describing type of geographic area: e.g.
1
county, service delivery area, MSA.
char(6)
Primary Key
Six digit code assigned to represent a geographic
area. Front fill with zeroes.
varchar(60)
Geographic area name.
varchar(2000)
Narrative description of a geographic area.
Data Bank Database version 0.1 | Lookup Tables

geog

A table containing geographic area descriptor records.


Column
Type
Constraint
Description
Constraint Information
1 Foreign Key (geog.stfips, geog.areatype) references (areatype.stfips, areatype.areatype)
INDTYPES
indtypes

This table contains one record for each industry code type used throughout the Data Bank
database.
Column
Type
Constraint
Description
codetype
char(2)
Primary Key
Code describing the type of industry classification
code.
codetydesc
varchar(40)
Title of classification Code.
Constraint Information
N/A

MONTHS
months

This table contains one record for each month in the year and the month properties.

Column

Type

Constraint

Description

periodtype

char(255)

Code describing type of period (e.g. annual,


quarterly, monthly, etc.)

period

char(255)

Period Code. Will be set to '00' where periodtype


is annual.

monthname

char(255)

Name of month.

Constraint Information
1 Foreign Key (period.periodtype, period.period)
NAICCODE
naiccode
Column
naicscode
naicstitle
naicstitll
naicsdesc
naicslvl
naicsect

This table contains one record for every code contained in the North American Industry
Classification System.
Type
Constraint
Description
char(6)
Primary Key
A code used in the North American Industry
Classification System (NAICS).
varchar(45)
Title assigned to the NAICS code.
varchar(120)
The long title assigned to the NAICS code.
varchar(2000)
A narrative description of the activities performed
by the establishment in this NAICS code.
char(1)
1
A code that indicates the hierarchical level of the
NAICS industry code.
char(2)
2
A code used to represent the NAICS industry
Data Bank Database version 0.1 | Lookup Tables

sectors.

Constraint Information
1 Foreign Key (naiccode.naicslvl) references (naicslvl.naicslvl)
2 Foreign Key (naiccode.naicsect) references (naicsect.naicsect)

Triggers are suggested to maintain the indcodes table. See explanation in the introductory section under
Table Constraints and Triggers. Use triggers on INSERT, UPDATE or DELETE of naiccode to maintain
indcodes. (statelst.stfips, 10, naiccode.naicscode, naiccode.naicstitle) maintains (indcodes.stfips,
indcodes.codetype, indcodes.code, indcodes.codetitle)
NAICDOM
naicdom

This table contains one record for each Domain as defined in the Bureau of Labor Statistics
official extensions to the North American Industry Classification System (NAICS). Domains
are aggregations of Supersectors as defined in the BLS extensions.
Column
Type
Constraint
Description
naicdomain
char(3)
Primary Key
A code that represents a Domain in the BLS
extensions to the North American Industry
Classification System (NAICS).
domaintitl
varchar(25)
Title assigned to the Domain.
Constraint Information
N/A

NAICSECT
naicsect
Column
naicsect

This table contains one record for each major industry sector in the North American
Industry Classification System.

Type
char(2)

sectdesc
varchar(45)
sectdescl
varchar(120)
naicsuper
char(4)
Constraint Information

Constraint
Primary Key 1

Description
A code used to represent the NAICS industry
sectors.
A short description of the NAICS industry sector.
A long description of the NAICS industry sector.
Code for a BLS defined NAICS Supersector.

1 Foreign Key (naicsect.naicsuper) references (naicsupr.naicsuper)

NAICSLVL
naicslvl

This table contains one record for each hierarchical level of the code contained in the North
American Industry Classification System.
Column
Type
Constraint
Description
naicslvl
char(1)
Primary Key
A code that indicates the hierarchical level of the
NAICS industry code.
leveldesc
varchar(40)
A description of the hierarchical level of the NAICS
industry code.
Constraint Information
N/A
Data Bank Database version 0.1 | Lookup Tables

10

NAICSUPR
naicsupr

This table contains one record for each Supersector in the North American Industry
Classification System (NAICS) as defined by the Bureau of Labor Statistics official extensions
to NAICS. Supersectors are aggregations of NAICS industry sectors.
Column
Type
Constraint
Description
naicsuper
char(4)
Primary Key
A code used to represent a Supersector as defined
in the official BLS extensions to the North
American Industry Classification System (NAICS).
supertitle
varchar(35)
Title assigned to the Supersector.
naicdomain
char(3)
1
Code for a BLS defined NAICS Domain.
Constraint Information
1 Foreign Key (naicsupr.naicdomain) references (naicdom.naicdomain)

OWNERSHP
ownershp

This table contains one record for each type of ownership.


Column
Type
Constraint
Description
stfips
char(2)
Primary Key
State FIPS code.
1
ownership
char(2)
Primary Key
A two digit indicator that identifies the employer
by public or private ownership.
ownertitle
varchar(40)
Title of ownership.
ownerdesc
varchar(2000)
Description of ownership.
Constraint Information
1 Foreign Key (ownershp.stfips) references (stfipstb.stfips)

PERIOD
period

This table contains one record for each period identified in the database.
Column
Type
Constraint
Description
periodyear
char(4)
Primary Key
Character representation of calendar year (e.g.
2000).
periodtype
char(2)
Primary Key
Code describing type of period (e.g. Annual,
1
quarterly, monthly, etc.)
period
char(2)
Primary Key
Period Code.
Constraint Information
1 Foreign Key (period.periodtype) references (periodty.periodtype)

PERIODTY
periodty
Column
periodtype

This table contains one record for each type of period (e.g. Annual, quarterly, hourly, etc.)
Type
Constraint
Description
char(2)
Primary Key
Code describing type of period (e.g. Annual,
quarterly, monthly, etc.)
Data Bank Database version 0.1 | Lookup Tables

11

pertypdesc
varchar(40)
Constraint Information
N/A

A description of the period type.

POPSOURC
popsourc

Code containing source of population estimates.


Column
Type
Constraint
Description
stfips
char(2)
Primary Key
State FIPS code.
1
popsource
char(1)
Primary Key
Source code for population data.
popsrcdesc
varchar(40)
Description of population source.
Constraint Information
1 Foreign Key (popsourc.stfips) references (stfipstb.stfips)

SERIESTITLES
seriestitles

One record for each Consumer Price Index categories of expenditure items.

Column

Type

Constraint

Description

seriesid

char(255)

Primary Key 1

ID made by the BLS to categorize series CPI.

seriestitle

char(255)

Name given by the Bureau of Labor Statistics to label


series for the Consumer Price Index

Constraint Information
1 Foreign Key (seriestitles.seriesid)
SUBGEOG
subgeog

Column
stfips
areatype
area
substfips
subareatyp
subarea

A table containing identifiers for substate geographic areas. For each larger stfips,
areatype, area combination, this table will contain a list of unique substfips,
subareatyp, subarea smaller combinations that comprise the larger geographic area.
Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1
char(2)
Primary Key
Code describing type of geographic area: e.g.
1
county, service delivery area, MSA.
char(6)
Primary Key
Six digit code assigned to represent a geographic
1
area. Front fill with zeroes.
char(2)
Primary Key
A two digit code assigned to represent a substate
2
FIPS code.
char(2)
Primary Key
A two digit code assigned to represent the type of
2
substate area.
char(6)
Primary Key
A six digit code assigned to represent the name of
2
the substate area.
Data Bank Database version 0.1 | Lookup Tables

12

subgeog

A table containing identifiers for substate geographic areas. For each larger stfips,
areatype, area combination, this table will contain a list of unique substfips,
subareatyp, subarea smaller combinations that comprise the larger geographic area.
Column
Type
Constraint
Description
Constraint Information
1 Foreign Key (subgeog.stfips, subgeog.areatype, subgeog.area) references (geog.stfips, geog.areatype,
geog.area)
2 Foreign Key (subgeog.substfips, subgeog.subareatyp, subgeog.subarea) references (geog.stfips,
geog.areatype, geog.area)

Data Bank Database version 0.1 | Lookup Tables

13

Data Tables
Description
These data tables contain information about economic indicators, population demographics, selected socioeconomic
characteristics, and other data. These tables are intended to contain information that is maintained on a regular basis
by Data Bank personnel.

Documentation
CES
Data description: The Current Employment Survey is done by the Bureau of Labor Statistics nationwide estimating
industry employment every month for the nation, states and metropolitan areas. This series is also referred to as
Nonagricultural Wage and Salary Employment and can be seasonally adjusted or not seasonally.
Data Source: New Mexico Department of Workforce Solutions
Geography Available: National, Statewide, Metropolitan Statistical Areas
Release Schedule: The file is uploaded monthly according to the release schedule posted on the data source website
at https://www.jobs.state.nm.us/gsipub/index.asp?docid=435
Data Processes: Data is received through the NMDWS website. Once the data is downloaded, additional
formatting is required to match the data base format. After formatting, the data needs to be imported into the data
base and checked for errors. This data is not seasonally adjusted.
Actual Steps:
1)
Go to laser.state.nm.us
2)
Click on CES under Quick Links.
3)
Select the Area. This will either be MSA 2000 or State.
4)
Select the Time. This will be the latest month available.
5)
Click search.
6)
Make sure the data is not seasonally adjusted. If it is seasonally adjusted, click the Show Not Seasonally
Adjusted Data link on the bottom. Open the table in Excel by clicking the Excel option.
7)
Save the table workbook. Replace the old file when prompted:
a.
For Albuquerque: ALBUQUERQUE_MSA
b.
For Santa Fe: SANTAFE_MSA
c.
For Las Cruces: LASCRUCES_MSA
d.
For Farmington: FARMINGTON_MSA
e.
For New Mexico: NEWMEXICO_MSA
8)
Navigate back to the online table and click Government.
9)
Repeat step 6.
10)
Save the new table as a workbook. Replace the old file when prompted:
a.
For Albuquerque: ALBUQUERQUE_GOV
b.
For Santa Fe: SANTAFE_GOV
c.
For Las Cruces: LASCRUCES_GOV
d.
For Farmington: FARMINGTON_GOV
e.
For New Mexico: NEWMEXICO_GOV
11)
Open CES_template.xlsx and update links when prompted.
Data Bank Database version 0.1 | Data Tables

14

12)
Open Access database
13)
In the Access ribbon, select External Data>Saved Imports
14)
Select Import_CEStable and Run
15)
If no errors were given, verify all records were pulled
Table Format:
ces
Column
stfips
areatype
area
periodyear
periodtype
period
seriescode
adjusted

benchmark
empces
empprodwrk
empfemale
hours
earnings
hourearn
supprecord

supphe

supppw

Employment estimates as reported by the Current Employment Survey.


Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1,3
char(2)
Primary Key
Code describing type of geographic area: e.g.
1
county, service delivery area, MSA.
char(6)
Primary Key
Six digit code assigned to represent a geographic
1
area. Front fill with zeroes.
char(4)
Primary Key
Character representation of calendar year (e.g.
2
1996).
char(2)
Primary Key
Code describing type of period (e.g. annual,
2
quarterly, monthly, etc.)
char(2)
Primary Key
Period Code. Will be set to '00' where periodtype
2
is annual.
char(8)
Primary Key
Industrial Series code.
3,
char(1)
Primary Key
Indicates if record contains seasonally adjusted
data.
1 = adjusted
0 = not adjusted
char(4)
Primary Key
Benchmark year of the data.
4
number(9)
Number employed by place of work; actual
number, not in thousands.
number(9)
Number of Production workers;
actual number, not in thousands.
number(9)
Number of females employed;
actual number, not in thousands.
number(3,1)
Average hours worked per week.
number(8,2)
Average weekly earnings.
number(6,2)
Average hourly earnings.
Suppress total record.
char(1)
1 = Suppressed
0 = Not Suppressed
Suppress hours and earnings.
char(1)
1 = Suppressed
0 = Not Suppressed
char(1)

Suppress Production Workers.


Data Bank Database version 0.1 | Data Tables

15

ces

Employment estimates as reported by the Current Employment Survey.


Type
Constraint
Description
1 = Suppressed
0 = Not Suppressed
suppfem
char(1)
Suppress Female Employment.
1 = Suppressed
0 = Not Suppressed
Constraint Information
1 Foreign Key (ces.stfips, ces.areatype, ces.area) references (geog.stfips, geog.areatype, geog.area)
2 Foreign Key (ces.periodyear, ces.periodtype, ces.period) references (period.periodyear,
period.periodtype, period.period)
3 Foreign Key (ces.stfips, ces.seriescode) references (cescode.stfips, cescode.seriescode)
4 Foreign Key (ces.benchmark) references (benmark.benchmark)
Column

CPI

Data description: The Consumer Price Indexes (CPI) program produces monthly data on changes in the prices
paid by urban consumers for a representative basket of goods and services.

Data Source: Bureau of Labor Statistics


Geography Available: National
Release Schedule: The data is posted online and according to the release schedule posted on the BLS
website: http://www.bls.gov/schedule/news_release/cpi.htm
Data Processes: Data is posted monthly on the BLS website according to the release schedule. These files dont
back update so when new data is released, it is easier to key in the entries by hand since there is only 8 of them. Once
updated, they need to be used for the New Mexico Business report for Guy. Suzan needs to proof the tables before
publishing.

Actual steps
1) Go to http://data.bls.gov/cgi-bin/srgate
2) Copy and paste the series ids into the box:
CUUR0000SA0
CUUR0000SAA
CUUR0000SAF
CUUR0000SAG
CUUR0000SAH
CUUR0000SAM
CUUR0000SAT
CWUR0000SA0
3)
4)
5)
6)

Check Original Data Value, 1-Month Percent Change, and 12-Month Percent Change checkboxes
Specify the year, typically its the current year
Specify the time period (month), typically its the most recent month
Make sure HTML table is selected and click Retrieve Data
Data Bank Database version 0.1 | Data Tables

16

7) Open Access database


8) Navigate to the cpiseries table
9) Key in values
10) Save table
11) Go to cpiseries query and run the appropriate months for Guy and Suzan
Table format:
cpi

Consumer Price Index data.

Column

Type

Constraint

Description

stfips

char(2)

Primary Key

State FIPS code.

1, 3, 4

areatype

char(2)

Primary Key

Code describing type of geographic area: e.g.


county, service delivery area, MSA.

1
area

char(6)

Primary Key
1

periodyear

char(4)

Primary Key
2

periodtype

char(2)

Primary Key
2

period

char(2)

Primary Key
2

cpitype

char(2)

cpisource

char(1)

cpi
pctchgy

number(6,1)
number(6,1)

pctchgm

number(6,1)

Primary Key
3
Primary Key
4

Six digit code assigned to represent a geographic


area. Front fill with zeroes.
Character representation of calendar year (e.g.
1996).
Code describing type of period (e.g. annual,
quarterly, monthly, etc.)
Period Code. Will be set to '00' where periodtype
is annual.
Type of CPI measure.
Source of the CPI measure.
CPI measure.
The percent change in the CPI from the period
exactly one year ago to the current period.
The percent change in the CPI from the period
exactly one month ago to the current month.

Constraint Information
1 Foreign Key (cpi.stfips, cpi.areatype, cpi.area) references (geog.stfips, geog.areatype, geog.area)
2 Foreign Key(cpi.periodyear,cpi.periodtype, cpi.period) references (period.periodyear, period.periodtype,
period.period)
3 Foreign Key (cpi.stfips, cpi.cpitype) references (cpitype.stfips, cpitype.cpitype)
4 Foreign Key (cpi.stfips, cpi.cpisource) references (cpisource.stfips, cpisource.cpisource)
Data Bank Database version 0.1 | Data Tables

17

LABFORCE

Data description:
Data Source: Bureau of Labor Statistics
Geography Available: National, Statewide, Metropolitan Statistical Area, Workforce Investment Area
and County.
Release Schedule: Monthly around the third Thursday.
Data Processes:
Actual steps:
labforce
Column
stfips
areatype
area
periodyear
periodtype
period
adjusted

Employment and unemployment estimates reported from the Local Area Unemployment
Statistics.
Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1
char(2)
Primary Key
Code describing type of geographic area: e.g.
1
county, service delivery area, MSA.
char(6)
Primary Key
Six digit code assigned to represent a geographic
1
area. Front fill with zeroes.
char(4)
Primary Key
Character representation of calendar year (e.g.
2
1996).
char(2)
Primary Key
Code describing type of period (e.g. annual,
2
quarterly, monthly, etc.)
char(2)
Primary Key
Period Code. Will be set to '00' where periodtype
2
is annual.
char(1)
Primary Key
Indicates adjusted data.
0 = Not Adjusted

prelim

char(1)

Primary Key

benchmark

char(4)

Primary Key

laborforce
emplab
unemp

number(9)
number(9)
number(9)

1 = Adjusted

Indicates preliminary data.


0 = Not preliminary
1 = preliminary
Benchmark year of the data.

Civilian labor force.


Number employed by place of residence.
Number unemployed.
Data Bank Database version 0.1 | Data Tables

18

labforce

Employment and unemployment estimates reported from the Local Area Unemployment
Statistics.
Column
Type
Constraint
Description
unemprate
number(5,1)
Unemployment rate.
PLEASE NOTE: IF AGGREGATING SMALLER AREA RECORDS INTO LARGER AREAS DO NOT USE
ROUNDED DATA RECORDS. THIS IS PARTICULARLY IMPORTANT FOR APPLICATIONS THAT
SUM RECORDS ACROSS AREAS.
Constraint Information
1 Foreign Key (labforce.stfips, labforce.areatype, labforce.area) references (geog.stfips, geog.areatype,
geog.area)
2 Foreign Key (labforce.periodyear, labforce.periodtype, labforce.period) references (period.periodyear,
period.periodtype, period.period)
3 Foreign Key (labforce.benchmark) references (benmark.benchmark)

QCEW
Data Description: Quarterly Census of Employment and Wages (QCEW). The QCEW program publishes a
quarterly count of employment and wages reported by employers that are covered by unemployment insurance laws.
Data includes monthly employment, quarterly average employment, average weekly wage, total wages paid by
county, by industry.
Data Source: New Mexico Department of Workforce Solutions. Alternative source would be the Bureau of Labor
series ID.
Geography Available: Statewide, Metropolitan Statistical Areas, Workforce Development Areas and County.
Release Schedule: The file is sent quarterly according to the release schedule posted on the data source website at
https://www.jobs.state.nm.us/gsipub/index.asp?docid=435 .
Data Processes: Data is received from Michelle Doran of New Mexico Department of Workforce Solutions,
Economic Research and Analysis Bureau. Generally two files are on a CD every quarter. One file is the prior quarter
revised and the other is the preliminary release for the most current quarter. The data is already in the database
format and just needs to be imported into the container and verified.
Actual Steps:
1) Receive CD.
2) There are two files on the CD. Generally named in the format industry-bberYYQ.txt. Where YY is year and
Q the quarter. One file is revised last quarter. The other file is the preliminary numbers for the most current
quarter.
3) Save files from CD to a drive on the computer.
4) Open in text editor and verify that the right number of fields exist and that the QTR data is in 01,
02,03 and 04 and not single digit.
5) Open Access database.
6) Open Module Industry Update Last Qtr and change file name to the revised file and then run.
7) Verify all records worked.
Data Bank Database version 0.1 | Data Tables

19

8) Open Module Industry Add current qtr and change file name to the current quarter and then run.
9) Verify all records worked.
Table Format:
qcew

Column
stfips
areatype
area
periodyear
periodtype
period
indcodty
indcode

ownership

This table contains covered employment by industry collected for the ES-202 report. (We
suggest that this table be maintained to include historical data so that reports reflecting
change can be produced.)
Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1,3,4
char(2)
Primary Key
Code describing type of geographic area: e.g.
1
county, service delivery area, MSA.
char(6)
Primary Key
Six digit code assigned to represent a geographic
1
area. Front fill with zeroes.
char(4)
Primary Key
Character representation of calendar year (e.g.
2
1996).
char(2)
Primary Key
Code describing type of period (e.g. annual,
2
quarterly, monthly, etc.)
char(2)
Primary Key
Period Code. Will be set to '00' where
2
periodtype is annual.
char(2)
Primary Key
Code describing the industry code type.
4
char(6)
Primary Key
A code used in the classification of establishments
4
by type of activity in which they are engaged. For
codes not 6 characters long, left justify and blank
(ASCII 32) fill. Either SIC or NAICS code can be
used. A siccode of 9999 means non-classifiable;
industry not specified.
char(2)
Primary Key
Ownership is a two digit indicator that identifies
3
the employer by public or private ownership.

firms

number(8)

The number of firms in the industry.

estab

number(8)

avgemp
mnth1emp
mnth2emp
mnth3emp

number(9)
number(9)
number(9)
number(9)

The number of employer establishments in the


industry. (reporting units)
The number of workers employed in the industry.
Employment on the first month of the quarter.
Employment on the second month of the quarter.
Employment on the third month of the quarter.

topempav

number(9)

totwage

number(14)

avgwkwage

number(8)

Average employment for the quarter or year of


the top employer for the specified geography and
industry code.

The total wages paid to all workers in the industry


for the period.
Average weekly wage per worker.
Data Bank Database version 0.1 | Data Tables

20

qcew

This table contains covered employment by industry collected for the ES-202 report. (We
suggest that this table be maintained to include historical data so that reports reflecting
change can be produced.)
Column
Type
Constraint
Description
taxwage
number(14)
Total taxable wages.
contrib
number(12)
Employer contributions to the UI fund.
suppress
char(1)
An indicator that the record contains confidential
data that must be suppressed for public use.
0 = Not Suppressed
1 = Suppress employment & wage data
Constraint Information
1 Foreign Key (industy.stfips, industry.areatype, industry.area) references (geog.stfips, geog.areatype,
geog.area)
2 Foreign Key (industry.periodyear, industry.periodtype, industry.period) references (period.periodyear,
period.periodtype, period.period)
3 Foreign Key (industry.stfips, industry.ownership) references (ownershp.stfips, ownershp.ownership)
4 Foreign Key (industry.stfips, industry.indcodty, industry.indcode) references (indcodes.stfips,
indcodes.codetype, indcodes.code)
Note:

If indcodty is:
05.........
10.........

Then indcode refers to a:


SIC code
NAICS code

Data Bank Database version 0.1 | Data Tables

21

Crosswalk Tables
Description
The following tables in this section represent the relationships between various classification codes. Technically these
tables are a sub-set of lookup tables and should never have any invalid code as they represent the crosswalk from one
code to another.

Documentation
Most crosswalk tables will be available from National Crosswalk Service Center (http://www.xwalkcenter.org/) or
the classification code work group.
SICXNAICS
sicxnaic

This table contains one record for each SIC-to-NAICS code relationship.
Column
Type
Constraint
Description
siccode
char(4)
Primary Key
A code used in the classification of establishments
1
by type of activity in which they are engaged. This
field is left justified and padded with zeroes. A
siccode of 9999 means non-classifiable; industry
not specified.
naicscode
char(6)
Primary Key
A code used in the North American Industry
2
Classification System (NAICS).
Constraint Information
1 Foreign Key (sicxnaic.siccode) references (siccode.siccode)
2 Foreign Key (sicxnaic.naicscode) references (naiccode.naicscode)

Data Bank Database version 0.1 | Crosswalk Tables

22

Administrative Tables
Description
The administrative tables are tables used to record database management activities.

Documentation
INDCODES
indcodes

Column
stfips
codetype
code

codetitle

This table contains a record for each industry code type/code combination contained in the
Data Bank Database lookup tables. It is specifically designed for reference by the database
data tables that can use multiple industry code types. It eliminates the need for any decision
routines to determine which lookup table to reference and thus eliminates the issues related
to conditional foreign keys.
Type
Constraint
Description
char(2)
Primary Key
State FIPS code.
1
char(2)
Primary Key
Code describing the type of industry
2
classification code.
char(6)
Primary Key
The classification code used by the state for this
data element. This could be a SIC or NAICS
code. For codes not 6 characters long, left justify
and blank (ASCII 32) fill.
varchar(75)
The descriptive title for this industry code.

Constraint Information
1 Foreign Key (indcodes.stfips) references (stfipstb.stfips)
2 Foreign Key (indcodes.codetype) references (indtypes.codetype)
Note:

If codetype is:

Then the source of the code is:

05.........

siccode.siccode

10.........

naiccode.naicscode

SortOrderOwnership
This table contains one record for each ownership type with the order to sort NAICS based
queries.
Type
Constraint
Description
varchar(32)
Primary Key
Name of Data Bank table.
varchar(60)
Description of table.
char(1)
A code indicating the type of Data
Bank table.
Constraint Information
N/A
sortordero
wnership
Column
tablename
tabledesc
tabletype

Data Bank Database version 0.1 | Administrative Tables

23

TABLLIST

This table contains one record for each table in the Data Bank Database.
Type
Constraint
Description
varchar(32)
Primary Key
Name of Data Bank table.
varchar(60)
Description of table.
char(1)
A code indicating the type of Data
Bank table.
Constraint Information
N/A
tabllist
Column
tablename
tabledesc
tabletype

TABLSRCE

This table is used to store data describing how and from whom to obtain source data for a
given Data Bank database table.
Column
Type
Constraint
Description
stfips
char(2)
Primary Key
State FIPS code.
1
tablename
varchar(32)
Primary Key
Name of DATA BANK table.
2
supplier
varchar(60)
Name of department or office.
contact
varchar(30)
Individual to contact.
telephone
char(10)
Telephone number.
teleext
varchar(10)
Telephone extention.
lastupdate
date
Date this source data was last updated.
nextupdate
date
Date this source data will be updated
next.
filetype
char(10)
File format of source data.
info
varchar(2000)
Narrative text describing any other
relevant information regarding this
source data.
Constraint Information
1 Foreign Key (tablesrce.stfips) references (stfipstb.stfips)
2 Foreign Key (tablsrce.tablename) references (tabllist.tablename)
tablsrce

SCHEDULE
schedule

This table contains records for time periods in the upcoming years for documented data
Data Bank Database version 0.1 |

24

Column
tablename
periodyear
periodty
period
Notes

release for each Data Table in the Database.


Type
Constraint
varchar(32)
Primary Key
1
char(4)
Primary Key
1
char(2)
Primary Key
1
char(2)
Primary Key
1
varchar(2000)

Description
Name of Data Bank table.
Character representation of calendar
year (e.g. 1996).
Code describing type of period (e.g.
annual, quarterly, monthly, etc.)
Period Code. Will be set to '00'
where periodtype is annual.
Narrative text describing any other
relevant information regarding this
schedule of release.

Contraint Information
1 Foreign Key (schedule.tablename) references (tabllist.tablename)
2 Foreign Key (schedule.periodyear, schedule.periodtype, schedule.period) references (period.periodyear,
period.periodtype, period.period)

Data Bank Database version 0.1 |

25

Field Values
Description
Field values denote what codes are defined for certain fields. Often times these are in a lookup table such as periodty.
However, it is useful to have a resource in one place to look up standard values. Many of these values are taken from
the WID. Some of these values are strictly Data Bank Database specific and therefore are documented here to make
sure that new tables added with similar fields can be consistent throughout the database container.

Documentation
Notes at the bottom of the Value column will often say State Defined this is a carryover from the WID
documentation and denotes where the (DB)2 has room to define specific values that are in addition to the WID values.
Field Name

Value

Tables Referenced

areatype

00 = US
01 = State
02 = MSA
03 = SDA
04 = County
05 = Minor Civil Division
06 = BLS Region
07 = Broad Geographic Area (BGA)
08 = Economic Development Region
09 = Planning Region
10 = Labor Market Area
11 = City
12 = Town
13 = Township
14 = Municipality/Suburb
15 = Workforce Investment Region
16 = One Stop Area
17 = Workforce Development Area
18 = Job Center Area
19 = Congressional District
21 = Metropolitan Statistical Area (2003 definition)*
22 = Micropolitan Statistical Area (2003 definition)*
23 = Metropolitan Division (2003 definition)*
24 = Combined Statistical Area*

areatype
ces
cpi
geog
labforce
qcew
populatn

30 = Balance of State
50 70 = State-Defined Area
* Core based statistical areas subject to annual revision.
Federal Notice generally comes out in February.
codetype

01 = Cluster
02 = OES
03 = CIP 2000

qcew*
*field=indcodty
Data Bank Database version 0.1 | Field Values

26

04 = DOT
05 = SIC
06 = 2000 Census Occupation code
07 = CIDS
08 = SOC 2000
09 = State specific
10 = NAICS
11 = MOS MOC
12 = O*NET
13 = MicroMatrix
14 = SOC 2010 code
15 = CIP 2010 code
16 = 2010 Census Occupation code
17 = 2000 Census Industry code
18 = 2010 Census Industry code
99 = Not Available
cpisource

1 = Bureau of Labor Statistic


6-8 = State Defined

cpi
cpisource

cpitype

01 = CPI-U all items 1982-84=100, not seasonally adjusted


02 = CPI-U all items 1982-84=100, seasonally adjusted
03 = CPI-W, all items 1982-84=100, not seasonally adjusted
04 = CPI-W, all items 1982-84=100, seasonally adjusted
05 = CPI-U all items 1967=100, not seasonally adjusted
06 = CPI-U all items 1967=100, seasonally adjusted
07 = CPI-W, all items 1967=100, not seasonally adjusted
08 = CPI-W, all items 1967=100, seasonally adjusted
50-70 = State-Defined CPI Types

cpi
cpisource

naicdomain

10 = Total, All Industries


101 = Goods-Producing
102 = Service-Providing

naicdom
naicsupr

naicsect

10 = Supersector / Domain totals


11 = Agriculture, Forestry, Fishing and Hunting
21 = Mining
22 = Utilities
23 = Construction
31 = Manufacturing (31 through 33)
42 = Wholesale Trade
44 = Retail Trade (44 & 45)
48 = Transportation and Warehousing (48 & 49)
51 = Information
52 = Finance and Insurance
53 = Real Estate and Rental and Leasing
54 = Professional, Scientific and Technical Services
55 = Management of Companies and Enterprises
56 = Administrative and Support and Waste Management and
Remediation Services

naiccode
naicsect

Data Bank Database version 0.1 | Field Values

27

61 = Education Services
62 = Health Care and Social Assistance
71 = Arts, Entertainment and Recreation
72 = Accomodation and Food Services
81 = Other Services (except Public Administration)
92 = Public Administration
naicslvl

D = Domain
0 = Total (000000)
1 = Supersector
2 = Sector (Two-digit)
3 = Subsector (Three-digit)
4 = Industry Group (Four-digit)
5 = Industry (Five-digit)
6 = US Industry (Six-digit)
9 = Not Specified

naiccode
naicslvl

naicsuper

10 = Total All Industries


101 = Goods-Producing
1011 = Natural Resources and Mining
Sectors 11, 21
1012 = Construction
Sector 23
1013 = Manufacturing
Sectors 31-33
102 = Service-Providing
1021 = Trade, Transportation, and Utilities
Sectors 42, 44-45, 48-49, 22
1022 = Information
Sector 51
1023 = Financial Activities
Sectors 52, 53
1024 = Professional and Business Services
Sectors 54, 55, 56
1025 = Education and Health Services
Sectors 61, 62
1026 = Leisure and Hospitality
Sectors 71, 72
1027 = Other Services
Sector 81
1028 = Public Administration
Sector 92
1029 = Unclassified
Sector 99

naicsect
naicsupr

ownership

00 = Total
10 = Federal Government
20 = State Government
30 = Local Government
40 = International Government
50 = Private

qcew
ownershp

Data Bank Database version 0.1 | Field Values

28

80 = Total Government
90 = Total UI Covered (excludes Federal Government)
periodtype

01 = Annual
02 = Quarter
03 = Monthly
04 = Weekly
05 = Decennial
06 = Bimonthly
07 = Semiallually
08 = Biannually
10 = ACS Multi-year - use period = 36 for 3-year period
- use period = 60 for 5-year period
- use end-year for period-year
99 = Not Applicable
50-70 = State-Defined Period Types

ces
cpi
labforce
qcew
period

popsource

1 = Census Decennial
2 = BEA
3 = ACS
6 = Census Annual Population Program
7 = BBER
6-9 = State-Defined Population Sources

popsourc
populatn

suppress

0 = if data is not confidential


1 = if data is confidential
--------- Extended codes for oeswage tables -------0 = Not Suppressed
1 = Suppress employment data
2 = Suppress wage data
3 = Suppress employment & wage data

qcew

tabletype

A = Administrative table
D = Data table
L = Lookup table
X = Crosswalk table

tabllist

Data Bank Database version 0.1 | Field Values

29

Appendix
Appendix A
Load order

Data Bank Database version 0.1 | Appendix

30

You might also like