PIVOT
Translation specification for the PIVOT function form Teradata to Snowflake
Description
PIVOT ( pivot_spec )
[ WITH with_spec [,...] ]
[AS] derived_table_name [ ( cname [,...] ) ]
pivot_spec := aggr_fn_spec [,...] FOR for_spec
aggr_fn_spec := aggr_fn ( cname ) [ [AS] pvt_aggr_alias ]
for_spec := { cname IN ( expr_spec_1 [,...] ) |
( cname [,...] ) IN ( expr_spec_2 [,...] ) |
cname IN ( subquery )
}
expr_spec_1 := expr [ [AS] expr_alias_name ]
expr_spec_2 := ( expr [,...] ) [ [AS] expr_alias_name ]
with_spec := aggr_fn ( { cname [,...] | * } ) [AS] aggr_aliasSample Source Patterns
Setup data
Teradata
Snowflake
Basic PIVOT transformation
Teradata
Snowflake
PIVOT with aliases transformation
Teradata
Snowflake
Known Issues
Related EWIs
Last updated
Was this helpful?