Figure 1 maps the conceptual objects to the DB2® user-defined types (UDTs) used in Intelligent Miner. This figure shows an example for clustering.
The REC2XML function creates an XML string value representing the database row, because this parameter contains a list of column name/value pairs for all columns in a row.
As the scores are computed in a scalar user-defined function, the scoring step can be embedded in arbitrary SQL statements.