A transformation list is defined as a table of transformation records. Each record (transform_rec
) specifies the transformation instructions for an attribute.
TYPE transform_rec IS RECORD ( attribute_name VARCHAR2(30), attribute_subname VARCHAR2(4000), expression EXPRESSION_REC, reverse_expression EXPRESSION_REC, attribute_spec VARCHAR2(4000));
The fields in a transformation record are described in Table 4-2.
Table 4-2 Fields in a Transformation Record for an Attribute
Field | Description |
---|---|
|
These fields identify the attribute, as described in "Scoping of Model Attribute Name" |
|
A SQL expression for transforming the attribute. For example, this expression transforms the age attribute into two categories: child and adult:[0,19) for 'child' and [19,) for adult CASE WHEN age < 19 THEN 'child' ELSE 'adult' Expression and reverse expressions are stored in |
|
A SQL expression for reversing the transformation. For example, this expression reverses the transformation of the age attribute: DECODE(age,'child','(-Inf,19)','[19,Inf)') |
|
Specifies special treatment for the attribute. The
See Example 4-1 and Example 4-2. |