Skip to content

SDK API Reference / generateBehaviorStatsSQL

Function: generateBehaviorStatsSQL()

generateBehaviorStatsSQL(config, behavior, interval?): string

Generate SQL for behavior statistics Returns distinct customer count and total event count Uses TD_INTERVAL for time-bounded query on large event tables

Parameters

config

ParentSegmentDef

behavior

BehaviorDef

interval?

string = DEFAULT_TIME_RANGE

Returns

string