TD_Unpivoting( ON {table | view | (query)} AS InputTable PARTITION BY ANY USING IDColumn('id_column') TARGETCOLUMNS ({'target_column' | target_column_range}[,...]) [ ATTRIBUTEALIASLIST ( 'attribute_alias_list_value' [,...] ) ] [ ATTRIBUTECOLNAME('Output_ColumnName_For_AttributeName') ] [ VALUECOLNAME('Output_ColumnName_For_AttributeValue') ] [ ACCUMULATE ({ 'accumulate_column' | accumulate_column_range }[,...]) ] [ INCLUDENULLS({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ] [ INPUTTYPES({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ] [ OUTPUTVARCHAR({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ] [ INDEXEDATTRIBUTE({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ] [ INCLUDEDATATYPES({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ])
You can call this function from:
- The FROM clause of a SELECT statement
- As part of a CREATE TABLE statement
- As part of a CREATE VIEW statement