Database Query Calculation Using an Operator that Explicitly Removes Group-By Characteristics

US2016267129A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016267129-A1
Application numberUS-201615164432-A
CountryUS
Kind codeA1
Filing dateMay 25, 2016
Priority dateJun 18, 2013
Publication dateSep 15, 2016
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

In one embodiment, a method receives a query for analyzing data in a database. The query includes a first level calculation that is performed before a second level calculation. When an operator associated with the first level calculation is present in the query, the method performs: calculating the first level calculation by removing group by information for a reference characteristic for the first level calculation to determine a first level calculation result and calculating the second level calculation using the first level calculation result using the group by information for the reference characteristic to determine a second level calculation result, wherein the group by in the second level calculation combines groups of rows in a database table of the database that have the same content in their specified columns.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method comprising: receiving, by a computing device, a query for analyzing data in a database, wherein the query includes a first level calculation that is performed before a second level calculation; determining, by the computing device, when an operator associated with the first level calculation is present in the query; when the operator is present, performing: calculating, by the computing device, the first level calculation by removing group by information for a reference characteristic for the first level calculation to determine a first level calculation result; and calculating, by the computing device, the second level calculation using the first level calculation result using the group by information for the reference characteristic to determine a second level calculation result, wherein the group by in the second level calculation combines groups of rows in a database table of the database that have the same content in their specified columns. 2 . The method of claim 1 , when the operator is not present, performing: calculating, by the computing device, the first level calculation using the group by information for the reference characteristic for the first level calculation to determine the first level calculation result; and calculating, by the computing device, the second level calculation using the first level calculation result using the group by information for the reference characteristic to determine the second level calculation result. 3 . The method of claim 2 , wherein when the operator is not present, and wherein: the first level calculation comprises a constant selection of the reference characteristic, and the constant selection is configured to remove the group by information for the reference characteristic for the first level calculation but the constant selection is not honored due to the principle of late aggregation. 4 . The method of claim 1 , wherein a rule indicates the group by information for the reference characteristic for the first level calculation cannot be removed, wherein the operator being present overrides the rule. 5 . The method of claim 1 , wherein when the operator is present, and wherein: the first level calculation includes a constant selection of the reference characteristic to remove the group by of the reference characteristic at the first level calculation, and the constant selection of the reference characteristic is used despite a rule specifying the group by information of the reference characteristic should not be removed by the first level calculation. 6 . The method of claim 5 , wherein when the operator is present, the removal of the group by of the reference characteristic by the constant selection overrides the rule. 7 . The method of claim 5 , wherein the rule is invoked when the second level calculation includes the group by information for a same reference characteristic as the reference characteristic specified by the constant selection in the first level calculation. 8 . The method of claim 1 , wherein the second level calculation comprises an exception aggregation that uses the first level calculation result in performing the second level calculation, and wherein the exception aggregation performs the second level calculation by aggregating by the reference characteristic to determine the second level calculation result 9 . The method of claim 1 , wherein when the operator is present, the group by information for the reference characteristic for the first level calculation to determine a first level calculation is removed for each cell in a column for the reference characteristic. 10 . A non-transitory computer-readable storage medium containing instructions, that when executed, control a computer system to be configured for: receiving a query for analyzing data in a database, wherein the query includes a first level calculation that is performed before a second level calculation; determining when an operator associated with the first level calculation is present in the query; when the operator is present, performing: calculating the first level calculation by removing group by information for a reference characteristic for the first level calculation to determine a first level calculation result; and calculating the second level calculation using the first level calculation result using the group by information for the reference characteristic to determine a second level calculation result, wherein the group by in the second level calculation combines groups of rows in a database table of the database that have the same content in their specified columns. 11 . The non-transitory computer-readable storage medium of claim 10 , when the operator is not present, performing: calculating, by the computing device, the first level calculation using the group by information for the reference characteristic for the first level calculation to determine the first level calculation result; and calculating, by the computing device, the second level calculation using the first level calculation result using the group by information for the reference characteristic to determine the second level calculation result. 12 . The method of claim 11 , wherein when the operator is not present, and wherein: the first level calculation comprises a constant selection of the reference characteristic, and the constant selection is configured to remove the group by information for the reference characteristic for the first level calculation but the constant selection is not honored due to the principle of late aggregation. 13 . The non-transitory computer-readable storage medium of claim 10 , wherein a rule indicates the group by information for the reference characteristic for the first level calculation cannot be removed, wherein the operator being present overrides the rule. 14 . The non-transitory computer-readable storage medium of claim 10 , wherein when the operator is present, and wherein: the first level calculation includes a constant selection of the reference characteristic to remove the group by of the reference characteristic at the first level calculation, and the constant selection of the reference characteristic is used despite a rule specifying the group by information of the reference characteristic should not be removed by the first level calculation. 15 . The non-transitory computer-readable storage medium of claim 14 , wherein when the operator is present, the removal of the group by of the reference characteristic by the constant selection overrides the rule. 16 . The non-transitory computer-readable storage medium of claim 14 , wherein the rule is invoked when the second level calculation includes the group by information for a same reference characteristic as the reference characteristic specified by the constant selection in the first level calculation. 17 . The non-transitory computer-readable storage medium of claim 10 , wherein the second level calculation comprises an exception aggregation that uses the first level calculation result in performing the second level calculation, and wherein the exception aggregation performs the second level calculation by aggregating by the reference characteristic to determine the second level calculation result 18 . The non-transitory computer-readable storage medium of claim 10 , wherein when the operator is present, the group by information for the reference characteristic for the first level calculation to determine a first level calculation is removed for each cell

Assignees

Inventors

Classifications

  • G06F16/244Primary

    Grouping and aggregation · CPC title

  • Aggregation; Duplicate elimination · CPC title

  • G06F16/283Primary

    Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP · CPC title

  • Search customisation based on user profiles and personalisation · CPC title

  • Column-oriented storage; Management thereof · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2016267129A1 cover?
In one embodiment, a method receives a query for analyzing data in a database. The query includes a first level calculation that is performed before a second level calculation. When an operator associated with the first level calculation is present in the query, the method performs: calculating the first level calculation by removing group by information for a reference characteristic for the f…
Who is the assignee on this patent?
Sap Se
What technology area does this patent fall under?
Primary CPC classification G06F16/244. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Sep 15 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).