Windowed Minimum - Teradata Warehouse Miner

Teradata Warehouse Miner User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.5
Published
February 2018
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
qhj1503087326201.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

Cumulative, Group, Moving and Remaining Minimum are supported within the Windowed Minimum function. This function derives a new column containing the minimum value of a column or expression. When one or more Partition Columns are specified, the minimum values are determined over the rows in each partition. Any of the Rows options may be used with this function. When dragging a Windowed Minimum function into a variable, the following tree element is created.

Variable Creation > Input > Variables: SQL Elements pane - Logical > Windowed Minimum

Sort expressions can be built up in the Sort Expressions folder, Partition Columns can be built up in that folder. The options to perform a Cumulative, Group, Moving or Remaining Minimum, and their associated options are enabled through the Properties panel. Double-click on Windowed Minimum, or highlight it and click Properties.

Variable Creation > Input > Variables: SQL Elements pane - Logical > Windowed Minimum Properties

These options are defined below for each of the four types of Windowed Minimum:
  1. Aggregation Style — Cumulative
    Second Row Style
    • None, or
    • Current Row, or
    • Value Preceding, or
    • Value Following.

      (If Value Preceding/Following)

      Second Value — 0-n

  2. Aggregation Style — Group
  3. Aggregation Style — Moving
    First Row Style
    • Current Row, or
    • Value Preceding, or
    • Value Following.

      (If Value Preceding/Following)

      First Value — 0-n

      Second Row Style

    • None, or
    • Current Row, or
    • Value Preceding, or
    • Value Following.

      (If Value Preceding/Following)

      Second Value — 0-n

  4. Aggregation Style — Remaining
    First Row Style
    • Current Row, or
    • Value Preceding, or
    • Value Following.

      (If Value Preceding/Following)

      First Value — 0-n