IDAX.AGGDISC - Aggregate data in outliers and bins
Use this stored procedure to aggregate the input data in outliers and bins, and to count the number of records in each bin during one data pass. For each bin, the minimum value, the maximum value, the average value, and the count of values are gathered and returned.
Authorization
The privileges held by the authorization ID of the statement must include the IDAX_USER role.
Syntax
IDAX.AGGDISC (in intable VARCHAR(256), in incolumn VARCHAR(32000), in validitypredicates VARCHAR(32000), in N INTEGER, in S INTEGER, in quantiles VARCHAR(32000))
Parameter descriptions
- intable
- Mandatory.
- incolumn
- Mandatory.
- validitypredicates
- Optional.
- N
- Mandatory.
- S
- Optional.
- quantiles
- The list of quantile percentage that is to be calculated for each column. The quantiles are separated by a semi-colon (;).
Returned information
TABLE(COLUMNNAME varchar(128), MINIMUM double, MAXIMUM double, MEAN double, COUNT bigint) that contains the outliers and aggregated bins as result set.
If the quantiles parameter is set, a second result set is returned. It contains the quantiles as TABLE(COLUMNNAME varchar(128), QUANTILE integer, VALUE double).
Example
CALL IDAX.AGGDISC ('SAMPLES.CUSTOMER_CHURN', 'AVG_SPENT_RETAIN_PM;ANNUAL_REVENUE_MIL', null, 10, 2, '25;50;75')