17.00 - Example: Function Mapping with (ANY) IN TABLE Clause Substitution - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)

The function mapping definition for user_attribution specifies an (ANY) IN TABLE clause substitution.

If a single table name is specified without a correlation during function processing, ConversionEvents is used.

CREATE FUNCTION MAPPING user_attribution
FOR Attribution SERVER coprocessor
USING
inputtable IN TABLE,
inputtable1 IN TABLE,
ConversionEvents(ANY) IN TABLE,
excluding IN TABLE,
optional IN TABLE,
model1   IN TABLE,
model2   IN TABLE,
EVENT_COLUMN_NAME ('event'),
TIMESTAMP_COLUMN_NAME ('time_stamp' ),
WINDOW(WindowSize);