Electronic database operations for perspective transformations on relational tables using pivot and unpivot columns
AssigneeMicrosoft Corporation
InventorsGoetz Graefe, Jeff Alger
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsGoetz Graefe, Jeff Alger
Estimating the term…
A “pivot” operation rotates the data items in a relational database table so that certain data values in the table become column names of the pivoted table, and the data items of a specified value column appear in corresponding rows in the new columns of the pivoted table. A pivot list specifies that only certain values of the pivot column data items participate in the operation. Additional columns of the input table appear as columns in the output table; the rows of the output table are grouped by equal data-item values in these grouping columns. An “unpivot” operation provides the inverse of the pivot operation. Both operations may be nested in an SQL user query at the algebraic level. The operations occur in the search engine of a relational database management system, and may also be invoked as part of an optimization of another query.
A method of unpivoting data in a relational database management system on a digital computer, comprising:
A method of transforming data from a pivoted relational database table stored in an electronic data processor into an unpivoted relational table, both of the tables having an array of data values stored in cells of the table and organized as a plurality of rows and columns and having multiple column names associated with respective ones of the columns but not a part of the tables themselves, the method comprising:
A relational database system, comprising:
A relational database system, comprising:
A storage medium for use in a suitably programmed digital computer, the medium containing computer-readable representations of an unpivoted relational table in a relational database, the unpivoted table having data values placed in rows and columns according to a pivot specification involving a pivoted relational input table, a pivot column, a pivot list, and a value column, the unpivoted table comprising:
A data-storage medium having a program stored thereon for causing a suitably programmed computer to perform the steps comprising:
Dependencies are inferred from the claim text.