Virtual and Direct Columns Definition

A Pick Data Provider table consists of two types of columns:

Direct columns are columns that physically exist in the table. Virtual columns are columns calculated from direct or other virtual columns in the table, or use direct or virtual columns that exist in a secondary  table. The use of  columns which exist in a secondary table requires that the primary table contain a primary key (foreign key) to the table. Direct and virtual columns are managed by using the Administration console.

 

See Column Class for more information.

Virtual Columns Based on Secondary Files

In the example below, there are two tables:

 

Parts Table

Description

Quantity

Vendor ID

 

Vendor Table

Vendor Name

Vendor Phone

Vendor Phone Type

 

By creating virtual columns from the Parts table to the Vendor table using the Vendor ID as the primary key to the Vendor table, any of the columns in the Vendor table can be made to appear as if it is in the Parts table.

 

There are two advantage of using virtual columns:

 

The Part table update consists of the Description, Quantity, and Vendor ID and the Vendor table update consists of the Vendor Name, Vendor Phone, and Vendor Phone Type.

 

Parts Table

Description

Quantity

Vendor ID

Vendor Name

Vendor Phone

Vendor Phone Type

Virtual Columns Based on Calculated Values

Using the Vendor table in this example, our analysis of our search patterns found that we often look for fax phone numbers by area code. Therefore, we have created a virtual column based on the phone number type and the area code portion of the phone number.

 

Vendor Table

Vendor Name

Vendor Phone

Vendor Phone Type

Phone Type + Area code

 

See Column Class for more information.

5