# US 2017/0293664 A1 · Multi-axis expand/collapse for relational databases

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293664 A1
- Document ID: US20170293664A1
- Status: Published application
- Kind: A1
- Application number: 15/465,346
- Filed: 2017-03-21
- Published: 2017-10-12
- Earliest claimed: 2016-04-06
- Assignees: InsightSoftware.com International
- Applicants: InsightSoftware.com International
- Inventors: Paul Duffy; Amir Kashani
- Web page: https://patentgrep.com/patent/US20170293664A1

## CPC

- G06F 16/248: Presentation of query results
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/24553: {of query operations}
- G06F 16/287: {Visualization; Browsing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure describes systems, methods, and apparatus for expanding a row or column in an existing report, sourced from a relational database, where a column or row, respectively, of an opposite axis has already been expanded. Such a need often arises in reports sourced from a SQL database, and overcomes the storage-draining need to pre-compute all possible arrangements of data from the database prior to displaying the report. In some embodiments, a client can make a request for a multi-axis expansion, and a server can create filters for use in sub queries, one for each level of expansion in an axis of the report opposite to the axis where expansion is requested, the sub queries can be executed, results sets can be combined/formatted to form a new report, and the new report can be returned to the client for stitching into the existing report.

## Claims

### Claim 1

A relational database device for performing multi-axis expansion of a row or column of an existing report, where newly-visible data is sourced from a relational database, the device comprising:
a processor with one or more processing components therein;
a memory coupled to the processor;
a multi-axis expander module stored on the memory and executed by the processor to:
form an existing report based on a structured query language (SQL) database in response to a first request received from a client computer via a network, the existing report comprising rows and columns of data, row headings for the rows, and column headings for the columns;
receive at a server computer a second request from the client computer, wherein the second request is for expansion of a row or column, where a column or row, respectively, has already been expanded; and
create one or more sub queries, where a number of the one or more sub queries corresponds to a number of levels of already-expanded nodes in an axis opposite to an axis where the expansion is requested, wherein the create the one or more sub queries includes measuring a depth of expansion, in the axis opposite, of a tree hierarchy for the existing report, the tree hierarchy stored in memory, wherein each sub query of the one or more sub queries includes:
a SELECT filter, the SELECT filter being the same for each sub query of the one or more sub queries, the SELECT filter including children of the node being expanded and nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite, and
a WHERE filter, different for each sub query of the one or more sub queries, the WHERE filter including the node being expanded and any parent nodes of the node being expanded as well as nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite;
execute the one or more sub queries to form a results set for each sub query of the one or more sub queries;
combine the results sets into a new report, the new report including data and headings to populate new blank columns and rows in the existing report, the new report configured for stitching into the blank columns and rows in the existing report; and
return the new report to the client computer for stitching the new report into the existing report on the client computer to form a final report, or stitching the new report into the existing report on the server computer to form the final report and returning the final report to the client computer.

### Claim 2 (depends on 1)

The system of claim 1, wherein values in the row or column being expanded are not pre-computed prior to the expanding.

### Claim 3 (depends on 2)

The system of claim 2, wherein online analytical processing cubes are not used.

### Claim at position 4

4-5. (canceled)

### Claim 6

A method of multi-axis expansion of a row or column of an existing report, where newly-visible data is sourced from a relational database, the method comprising:
forming, by a server computer, an existing report based on a structured query language (SQL) database in response to a first request received from a client computer via a network, the existing report comprising rows and columns of data, row headings for the rows, and column headings for the columns;
receiving at the server computer a second request from the client computer, wherein the second request is for expansion of a row or column, where an opposite-axis column or row, respectively, has already been expanded; and
creating at the server computer one or more sub queries, where a number of the one or more sub queries corresponds to a number of levels of already-expanded nodes in an axis opposite to the axis where the expansion is requested, wherein the create the one or more sub queries includes measuring a depth of expansion in the axis opposite of a tree hierarchy for the existing report, the tree hierarchy stored in memory, wherein each sub query of the one or more sub queries includes:
a SELECT filter, the SELECT filter being the same for each sub query of the one or more sub queries, the SELECT filter including children of the node being expanded and nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite, and
a WHERE filter, different for each sub query of the one or more sub queries, the WHERE filter including the node being expanded and any parent nodes of the node being expanded as well as nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite;
executing, by the server computer, the one or more sub queries and returning a results set for each sub query of the one or more sub queries; and
combining, by the server computer, the results sets into a new report, the new report including data and headings to populate new blank columns and rows in the existing report, the new report configured for stitching into the blank columns and rows in the existing report; and
returning the new report to the client computer for stitching the new report into the existing report on the client computer to form a final report, or stitching the new report into the existing report on the server computer to form the final report and returning the final report to the client computer.

### Claim 7 (depends on 6)

The method of claim 6, wherein values in the row or column being expanded are not pre-computed prior to the expanding.

### Claim 8 (depends on 7)

The method of claim 7, wherein online analytical processing cubes are not used.

### Claim at position 8

9-10. (canceled)

### Claim 11

A computer program product for multi-axis expansion of a row or column of an existing report, where newly-visible data is sourced from a relational database, the computer program product comprising a non-transitory computer readable medium storing a computer readable program, wherein the computer readable program when executed causes the computer to perform steps comprising:
forming, by a server computer, an existing report based on a structured query language (SQL) database in response to a first request received from a client computer via a network, the existing report comprising rows and columns of data, row headings for the rows, and column headings for the columns;
receiving at the server computer a second request from the client computer, wherein the second request is for expansion of a row or column, where a column or row, respectively, has already been expanded; and
creating at the server computer one or more sub queries, where a number of the one or more sub queries corresponds to a number of levels of already-expanded nodes in an axis opposite to the axis where the expansion is requested, wherein the create the one or more sub queries includes measuring a depth of expansion in the axis opposite of a tree hierarchy for the existing report, the tree hierarchy stored in memory, wherein each sub query of the one or more sub queries includes:
a SELECT filter, the SELECT filter being the same for each sub query of the one or more sub queries, the SELECT filter including children of the node being expanded and nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite, and
a WHERE filter, different for each sub query of the one or more sub queries, the WHERE filter including the node being expanded and any parent nodes of the node being expanded as well as nodes from one or more levels of the axis opposite related to any expanded nodes of the axis opposite;
executing, by the server computer, the one or more sub queries to form a results set for each sub query of the one or more sub queries;
combining the results sets into a new report, the new report including data and headings to populate new blank columns and rows in the existing report, the new report configured for stitching into the blank columns and rows in the existing report; and
returning the new report to the client computer for stitching the new report into the existing report on the client computer to form a final report, or stitching the new report into the existing report on the server computer to form the final report and returning the final report to the client computer.

### Claim 12 (depends on 11)

The method of claim 11, wherein values in the row or column being expanded are not pre-computed prior to the expanding.

### Claim 13 (depends on 12)

The method of claim 12, wherein online analytical processing cubes are not used.

### Claim at position 12

14-16. (canceled)
