Table: DBA . bonus

Employee bonus payments. Used by Powersoft Training only.
Column: emp_id - in DBA.bonus - /* PK */ INTEGER NOT NULL
Employee id (not yet a foreign key to the employee table).
Column: bonus_date - in DBA.bonus - /* PK */ DATE NOT NULL
Date of this bonus payment to this employee.
Column: bonus_amount - in DBA.bonus - NUMERIC ( 9, 2 ) NULL
The amount of the bonus payment.

Table: DBA . call_track

Call Tracking.
Column: id - in DBA.call_track - /* PK */ INTEGER DEFAULT autoincrement NOT NULL
Automatically generated id column has default AutoIncrement.
Column: call_date - in DBA.call_track - DATE NOT NULL
Date of this call.
Column: caller_name - in DBA.call_track - VARCHAR ( 30 ) NOT NULL
Name of the caller.
Column: call_notes - in DBA.call_track - VARCHAR ( 32765 ) NOT NULL
Notes on this call.

Table: DBA . contact

A list of contacts.
Column: id - in DBA.contact - /* PK */ INTEGER NOT NULL
Unique Identification number of the contact (not automatically generated).
Column: last_name - in DBA.contact - CHAR ( 15 ) NOT NULL
Last name of the contact.
Column: first_name - in DBA.contact - CHAR ( 15 ) NOT NULL
First name of the contact.
Column: title - in DBA.contact - CHAR ( 2 ) NOT NULL
Job role of the contact.

Values:

   Sales                   sa
   Customer support        cs
   Product development     pd
   Administration          ad
   Training                tr
   Documentation           do
   Marketing               ma
   Human resources         hr
   Finance                 fi
   Other                   ot
Column: street - in DBA.contact - CHAR ( 30 ) NOT NULL
Street address of the contact.
Column: city - in DBA.contact - CHAR ( 20 ) NOT NULL
City where the contact is located.
Column: state - in DBA.contact - CHAR ( 2 ) NOT NULL
State where the contact is located; e.g., 'MI', 'TX', 'MA'.
Column: zip - in DBA.contact - CHAR ( 5 ) NOT NULL
Zip Code where the contact is located (first 5 digits only).
Column: phone - in DBA.contact - CHAR ( 10 ) NULL
Phone Number of the contact; e.g., '5105551309' displayed as '(510) 555-1309'.
Column: fax - in DBA.contact - CHAR ( 10 ) NULL
Fax Number of the contact; e.g., '5105554209' displayed as '(510) 555-4209'.

Table: DBA . customer

A list of customers
Column: id - in DBA.customer - /* PK */ INTEGER NOT NULL
Unique Identification number of the customer (not automatically generated).
Column: fname - in DBA.customer - /* X */ CHAR ( 15 ) NOT NULL
First name of the customer.
Column: lname - in DBA.customer - /* X */ CHAR ( 20 ) NOT NULL
Last name of the customer.
Column: address - in DBA.customer - CHAR ( 35 ) NOT NULL
Mailing address of the customer.
Column: city - in DBA.customer - CHAR ( 20 ) NOT NULL
City where the customer is located.
Column: state - in DBA.customer - CHAR ( 2 ) NOT NULL
State where the customer is located.
Column: zip - in DBA.customer - CHAR ( 10 ) NOT NULL
Zip or postal code where the customer is located. Up to 10 characters may be stored, and the default display format is '#####-####'.
Column: phone - in DBA.customer - CHAR ( 12 ) NOT NULL
Phone number of the customer; e.g., '5105551309' displayed as '(510) 555-1309'.
Column: company_name - in DBA.customer - CHAR ( 35 ) NULL
Name of the company.

Table: DBA . department

Contains all departments within the company
Column: dept_id - in DBA.department - /* PK */ INTEGER NOT NULL
Unique Identification Code of the department (not automatically generated).
Column: dept_name - in DBA.department - CHAR ( 40 ) NOT NULL
Name of the department.
Column: dept_head_id - in DBA.department - /* FK */ INTEGER NULL
Employee identification number of the department manager.

This column must either be NULL or contain a valid employee.emp_id value.


Table: DBA . employee

A list of all employees within the company
Column: emp_id - in DBA.employee - /* PK */ INTEGER NOT NULL
Identification Number of the employee (not automatically generated).
Column: manager_id - in DBA.employee - INTEGER NULL
Identification number of the employee's manager.

No foreign key relationship exists between this column and employee.emp_id.

Column: emp_fname - in DBA.employee - CHAR ( 20 ) NOT NULL
First name of the employee.
Column: emp_lname - in DBA.employee - CHAR ( 20 ) NOT NULL
Last name of the employee.
Column: dept_id - in DBA.employee - /* FK */ INTEGER NOT NULL
Identification Number for the department where the employee works.

This column must contain a valid department.dept_id value.

Column: street - in DBA.employee - CHAR ( 40 ) NOT NULL
Street address of the employee.
Column: city - in DBA.employee - CHAR ( 20 ) NOT NULL
City where the employee resides.
Column: state - in DBA.employee - CHAR ( 4 ) NOT NULL
State where the employee resides.
Column: zip_code - in DBA.employee - CHAR ( 9 ) NOT NULL
Zip Code where the employee resides.
Column: phone - in DBA.employee - CHAR ( 10 ) NULL
Phone number of the employee.
Column: status - in DBA.employee - CHAR ( 1 ) NULL
Status of the employee.

Values:

   Active        A
   Terminated    T
   On Leave      L
Column: ss_number - in DBA.employee - CHAR ( 11 ) NOT NULL
Social Security Number of the employee.
Column: salary - in DBA.employee - NUMERIC ( 20, 3 ) NOT NULL
Annual salary of the employee.
Column: start_date - in DBA.employee - DATE NOT NULL
Date the employee began working.
Column: termination_date - in DBA.employee - DATE NULL
Date the employee was terminated.
Column: birth_date - in DBA.employee - DATE NULL
Birth Date of the employee.
Column: bene_health_ins - in DBA.employee - CHAR ( 1 ) NULL
Y/N: if the employee has health insurance.
Column: bene_life_ins - in DBA.employee - CHAR ( 1 ) NULL
Y/N: if the employee has life insurance.
Column: bene_day_care - in DBA.employee - CHAR ( 1 ) NULL
Y/N: if the employee is entitled to day care insurance.
Column: sex - in DBA.employee - CHAR ( 1 ) NULL
M or F for Male or Female.

Table: DBA . exam_xref_info

- - -
Column: object_ref - in DBA.exam_xref_info - /* PK X */ VARCHAR ( 40 ) NOT NULL
- - -
Column: object_ref_type - in DBA.exam_xref_info - /* X */ VARCHAR ( 100 ) NOT NULL
- - -
Column: event - in DBA.exam_xref_info - /* PK X */ VARCHAR ( 100 ) NOT NULL
- - -
Column: referenced_in - in DBA.exam_xref_info - /* PK X */ VARCHAR ( 40 ) NOT NULL
- - -
Column: ref_in_type - in DBA.exam_xref_info - VARCHAR ( 40 ) NOT NULL
- - -
Column: pbl - in DBA.exam_xref_info - VARCHAR ( 60 ) NOT NULL
- - -
Column: application - in DBA.exam_xref_info - /* PK */ CHAR ( 10 ) NOT NULL
- - -
Column: scope - in DBA.exam_xref_info - CHAR ( 1 ) NULL
- - -
Column: short_event - in DBA.exam_xref_info - VARCHAR ( 40 ) NULL
- - -

Table: DBA . exam_xref_list

- - -
Column: object - in DBA.exam_xref_list - /* PK */ VARCHAR ( 40 ) NOT NULL
- - -
Column: refer - in DBA.exam_xref_list - /* PK X */ VARCHAR ( 40 ) NOT NULL
- - -
Column: application - in DBA.exam_xref_list - /* PK */ CHAR ( 10 ) NOT NULL
- - -

Table: DBA . examples

Used for the front-end to the Code Examples
Column: title - in DBA.examples - CHAR ( 60 ) NOT NULL
Title of the example
Column: window - in DBA.examples - /* PK */ CHAR ( 40 ) NOT NULL
Window that is opened when the example runs
Column: version - in DBA.examples - CHAR ( 5 ) NULL
Version of PowerBuilder that the example pertains to
Column: description - in DBA.examples - CHAR ( 32765 ) NULL
A summary of what the code example does
Column: technique - in DBA.examples - CHAR ( 32765 ) NULL
A technical summary of what the code example is showing
Column: new - in DBA.examples - SMALLINT NULL
Determines if the example is new for the current release of PowerBuilder
Column: enhanced - in DBA.examples - SMALLINT NULL
Determines if the code example has been changed, or enhanced, for the current release
Column: ostype - in DBA.examples - VARCHAR ( 40 ) NULL
Determines what operating systems the example will run on
Column: pbtype - in DBA.examples - VARCHAR ( 17 ) NULL
Determines whether the example will run on desktop or enterprise
Column: exhelp - in DBA.examples - SMALLINT NULL
Determine if the example has help associated with it in the Help File.

Table: DBA . examples_categories_list

- - -
Column: group_id - in DBA.examples_categories_list - /* PK */ CHAR ( 40 ) NOT NULL
- - -

Table: DBA . examples_groups

Defines the Code Example topics
Column: group_id - in DBA.examples_groups - /* PK FK */ CHAR ( 40 ) NOT NULL
Code example topic
Column: window - in DBA.examples_groups - /* PK FK */ CHAR ( 40 ) NOT NULL
Window that opens when code example runs

Table: DBA . examples_previews

- - -
Column: window - in DBA.examples_previews - /* PK FK U */ CHAR ( 40 ) NOT NULL
Example window
Column: screen - in DBA.examples_previews - IMAGE NULL
Screen shot of example

Table: DBA . fin_code

Financial Codes table
Column: code - in DBA.fin_code - /* PK */ CHAR ( 2 ) NOT NULL
Unique financial identification code
Column: type - in DBA.fin_code - CHAR ( 10 ) NOT NULL
Financial Code type
Column: description - in DBA.fin_code - CHAR ( 50 ) NULL
Financial Code description

Table: DBA . fin_data

Financial data
Column: year - in DBA.fin_data - /* PK */ CHAR ( 4 ) NOT NULL
Year financial data applies to
Column: quarter - in DBA.fin_data - /* PK */ CHAR ( 2 ) NOT NULL
The quarter that the financial data applies to
Column: code - in DBA.fin_data - /* PK FK X */ CHAR ( 2 ) NOT NULL
Financial Identification Code
Column: amount - in DBA.fin_data - NUMERIC ( 9 ) NULL
Dollar amount recorded for year, quarter, and financial code

Table: DBA . ole

- - -
Column: id - in DBA.ole - /* PK */ CHAR ( 20 ) NOT NULL
Identification Code
Column: object - in DBA.ole - IMAGE NULL
blob column
Column: description - in DBA.ole - VARCHAR ( 32765 ) NOT NULL
description of the blob

Table: DBA . printer

- - -
Column: rep - in DBA.printer - /* PK */ CHAR ( 10 ) NOT NULL
- - -
Column: quarter - in DBA.printer - /* PK */ CHAR ( 2 ) NOT NULL
- - -
Column: product - in DBA.printer - /* PK */ CHAR ( 12 ) NOT NULL
- - -
Column: units - in DBA.printer - INTEGER NOT NULL
- - -

Table: DBA . product

Products that are sold to customers
Column: id - in DBA.product - /* PK */ INTEGER NOT NULL
Unique Identification Code of the product
Column: name - in DBA.product - /* X */ CHAR ( 15 ) NOT NULL
Name of the product
Column: description - in DBA.product - /* X */ CHAR ( 30 ) NOT NULL
Describes what the product is
Column: prod_size - in DBA.product - /* X */ CHAR ( 18 ) NOT NULL
Measurements of the product.

Values:

   Small
   Medium
   Large
   One size fits all
Column: color - in DBA.product - /* X */ CHAR ( 6 ) NOT NULL
Color of the product.

Values:

   White
   Black
   Purble
   Orange
   Green
   Blue
   Yellow
   Red
Column: quantity - in DBA.product - INTEGER NOT NULL
Amount of the product in stock
Column: unit_price - in DBA.product - NUMERIC ( 15, 2 ) NOT NULL
Unit price per product
Column: picture_name - in DBA.product - CHAR ( 12 ) NULL
.bmp filename that shows what the product looks like
Column: catalog_picture - in DBA.product - IMAGE NULL
Blob containing a catalog picture of the product in RLE format

Table: DBA . province

- - -
Column: province_code - in DBA.province - /* PK */ VARCHAR ( 2 ) NOT NULL
- - -
Column: province_name - in DBA.province - VARCHAR ( 50 ) NOT NULL
- - -

Table: DBA . sales_order

Master sales orders table
Column: id - in DBA.sales_order - /* PK */ INTEGER NOT NULL
Unique Identification Number of the sales order
Column: cust_id - in DBA.sales_order - /* FK X */ INTEGER NOT NULL
Identification Number of the customer that the sales order is for
Column: order_date - in DBA.sales_order - DATE NOT NULL
Date Ordered
Column: fin_code_id - in DBA.sales_order - /* FK */ CHAR ( 2 ) NULL
Financial Code
Column: region - in DBA.sales_order - CHAR ( 7 ) NULL
Sales Region.

Values:

   Central
   Eastern
   South
   Western
   Canada
Column: sales_rep - in DBA.sales_order - /* FK */ INTEGER NOT NULL
Identification Number of the Sales Representative

Table: DBA . sales_order_items

Contains line items for sales orders
Column: id - in DBA.sales_order_items - /* PK FK */ INTEGER NOT NULL
Sales order Identification Number
Column: line_id - in DBA.sales_order_items - /* PK */ SMALLINT NOT NULL
Line item Identification Number
Column: prod_id - in DBA.sales_order_items - /* FK X */ INTEGER NOT NULL
Product Identification Number
Column: quantity - in DBA.sales_order_items - INTEGER NOT NULL
Quantity ordered
Column: ship_date - in DBA.sales_order_items - DATE NOT NULL
Date shipped

Table: DBA . states

The states table contains information about the states of the U.S. (plus the District of Columbia)
Column: state_id - in DBA.states - /* PK */ CHAR ( 3 ) NOT NULL
State Identification Code
Column: state_name - in DBA.states - CHAR ( 24 ) NOT NULL
Name of the state
Column: state_capital - in DBA.states - /* PK */ CHAR ( 24 ) NOT NULL
Capital city of the state
Column: country - in DBA.states - CHAR ( 3 ) NOT NULL
Country the state is located in

Table: DBA . terminated_employee

Terminated employees. Used by Powersoft Training only.
Column: emp_id - in DBA.terminated_employee - /* PK */ INTEGER NOT NULL
- - -
Column: emp_fname - in DBA.terminated_employee - VARCHAR ( 20 ) NOT NULL
- - -
Column: emp_lname - in DBA.terminated_employee - VARCHAR ( 20 ) NOT NULL
- - -
Column: start_date - in DBA.terminated_employee - DATE NOT NULL
- - -
Column: termination_date - in DBA.terminated_employee - DATE NULL
- - -
Column: dept_id - in DBA.terminated_employee - INTEGER NOT NULL
- - -
Column: street - in DBA.terminated_employee - VARCHAR ( 40 ) NOT NULL
- - -
Column: city - in DBA.terminated_employee - VARCHAR ( 20 ) NOT NULL
- - -
Column: state - in DBA.terminated_employee - VARCHAR ( 4 ) NOT NULL
- - -
Column: zip_code - in DBA.terminated_employee - VARCHAR ( 9 ) NOT NULL
- - -
Column: phone - in DBA.terminated_employee - VARCHAR ( 10 ) NULL
- - -
Column: ss_number - in DBA.terminated_employee - VARCHAR ( 11 ) NOT NULL
- - -
Column: salary - in DBA.terminated_employee - NUMERIC ( 20, 3 ) NOT NULL
- - -
Column: sex - in DBA.terminated_employee - VARCHAR ( 1 ) NULL
- - -