aggregate_unpivot
- aggregate_unpivot(
table_name: string,
column_names: string[],
variable_column_name: string | undefined,
value_column_name: string | undefined,
pivoted_columns: string[],
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<AggregateUnpivotResponse>Parameters
- table_name: string
Name of the table on which the operation will be performed. Must be an existing table/view, in [schema_name.]table_name format, using standard name resolution rules.
- column_names: string[]
List of column names or expressions. A wildcard ’*’ can be used to include all the non-pivoted columns from the source table.
- variable_column_name: string | undefined
Specifies the variable/parameter column name.
- value_column_name: string | undefined
Specifies the value column name.
- pivoted_columns: string[]
List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AggregateUnpivotResponse>
Promise<Types.AggregateUnpivotResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:3731
- table_name: string
aggregate_unpivot_request
- aggregate_unpivot_request(
request: AggregateUnpivotRequest,
callback?: GPUdbCallback,
): Promise<AggregateUnpivotResponse>Rotate the column values into rows values.
For unpivot details and examples, see Unpivot. For limitations, see Unpivot Limitations.
Unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.
The response is returned as a dynamic schema. For details see: dynamic schemas documentation.
Parameters
- request: AggregateUnpivotRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AggregateUnpivotResponse>
Promise<Types.AggregateUnpivotResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:3682
- request: AggregateUnpivotRequest
Rotate the column values into rows values.
For unpivot details and examples, see Unpivot. For limitations, see Unpivot Limitations.
Unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.
The response is returned as a dynamic schema. For details see: dynamic schemas documentation.