Siebel Marketing Guide > External Data Mapping > Working With Tables >

Understanding Partition and Union Tables


In large data warehouses, tables can grow to an unmanageable size. Typically, this occurs with tables containing transaction data that expands over time. You can use the following table types to manage table size:

Consider the following guidelines when creating union tables:

The following examples illustrate union table rules.

Example 1. You want to create a union table that uses three partition tables. Because the five fields in each partition table are identical, the union table contains the five fields.

Partition 1
Partition 2
Partition 3
Union
Field1
Field1
Field1
Field1
Field2
Field2
Field2
Field2
Field3
Field3
Field3
Field3
Field4
Field4
Field4
Field4
Field5
Field5
Field5
Field5

Example 2. You want to create a union table using partition tables that have no common fields. The union table contains no fields.

Partition 1
Partition 2
Union
Field1
Field6
 
Field2
Field7
 
Field3
Field8
 
Field4
Field9
 
Field5
Field10
 

Example 3. You want to create a union table using three partition tables. Examples 1 and 3 have common fields. However, because Example 2 fields are not identical, the union table contains no fields.

Partition 1
Partition 2
Partition 3
Union
Field1
Field6
Field1
 
Field2
Field7
Field2
 
Field3
Field8
Field3
 
Field4
Field9
Field4
 
Field5
Field10
Field5
 

Example 4. You want to create a union table using three partition tables. The tables have some fields which are identical, and others that are not. The fields that are identical across the three tables are included in the union table.

Partition 1
Partition 2
Partition 3
Union
Field1
Field1
Field1
Field1
Field2
Field7
Field2
 
Field3
Field8
Field3
 
Field4
Field4
Field4
Field4
Field5
Field10
Field5
 

Example 5. You are editing partition tables and plan to create a new union table. You add a new field to each partition table. However, the fields are not identical. The new union table reflects no changes from the old union table.

Old Union
Partition 1
Partition 2
New Union
Field1
Field1
Field1
Field1
Field2
Field2
Field2
Field2
Field3
Field3
Field3
Field3
Field4
Field4
Field4
Field4
Field5
Field5
Field5
Field5
 
Field6
Field7
 

Example 6. You are editing partition tables and plan to create a new union table. You add a new field to each partition table, and the fields are identical. The new union table reflects the addition of the new field.

Old Union
Partition 1
Partition 2
New Union
Field1
Field1
Field1
Field1
Field2
Field2
Field2
Field2
Field3
Field3
Field3
Field3
Field4
Field4
Field4
Field4
Field5
Field5
Field5
Field5
 
Field6
Field6
Field6


 Siebel Marketing Guide 
 Published: 23 June 2003