System and method of formulating queries in relational databases
First Claim
1. A method of creating a report in a computer-based business intelligence system, using a client application receiving user inputs and a metadata model containing model objects that represent the data sources, the method comprising the steps of:
- a) defining a model based on an existing database comprising at least two query subjects, each query subject having at least one fact query item and one primary key;
b) generating a hierarchy of sets and subsets of key query items in query subjects within the model according to rules for computation of the dimensional information;
c) accepting an input request from a user to define contents of the report;
d) determining an expression to extract data from the database to fulfill the input request;
e) decomposing the expression into subqueries using the hierarchy of sets and subsets of key query items to prevent multiple-counting of data;
f) accessing the data using the subqueries; and
g) producing the report.
4 Assignments
0 Petitions
Accused Products
Abstract
The invention introduces a method and system to automatically derive the relationships between query subjects and query items within query subjects so that problems such as those that result in double courting of information are avoided. It provides for creating a report by first defining a model based on an existing database comprising two or more query subjects, each query subject comprising at least one fact query item and one primary key, then generating a hierarchy of sets and subsets of key query items within the model. Next a further fact is introduced into one of the query subjects. The expression is decomposed into sub-queries to prevent double counting of data in ambiguously defined situations. This is achieved using the introduced fact to determine that such decomposition is required. Finally, the data is accessed using the sub-queries, and a report is produced.
16 Citations
6 Claims
-
1. A method of creating a report in a computer-based business intelligence system, using a client application receiving user inputs and a metadata model containing model objects that represent the data sources, the method comprising the steps of:
-
a) defining a model based on an existing database comprising at least two query subjects, each query subject having at least one fact query item and one primary key;
b) generating a hierarchy of sets and subsets of key query items in query subjects within the model according to rules for computation of the dimensional information;
c) accepting an input request from a user to define contents of the report;
d) determining an expression to extract data from the database to fulfill the input request;
e) decomposing the expression into subqueries using the hierarchy of sets and subsets of key query items to prevent multiple-counting of data;
f) accessing the data using the subqueries; and
g) producing the report. - View Dependent Claims (2)
-
-
3. A system for creating a report in a computer-based business intelligence system, using a client application receiving user inputs and a metadata model containing model objects that represent the data sources, comprising:
-
a) means for defining a model based on an existing database comprising at least two query subjects, each query subject having at least one fact query item and one primary key query item;
b) means for generating a hierarchy of sets and subsets of key query items in query subjects within the model according to rules for computation of the dimensional information;
c) means for accepting an input request from a user to define contents of the report;
d) means for determining an expression to extract data from the database to fulfill the input request;
e) means for decomposing the expression into subqueries using the hierarchy of sets and subsets of key query items to prevent multiple counting of data;
f) means for accessing the data using the subqueries; and
g) means for producing the report. - View Dependent Claims (4)
-
-
5. A computer-readable medium having computer-executable instructions for performing a method for creating a report in a computer-based business intelligence system, using a client application receiving user inputs and a metadata model containing model objects that represent the data sources, comprising:
-
a) code for defining a model based on an existing database comprising at least two query subjects, each query subject having at least one fact query item and one primary key query item;
b) code for generating a hierarchy of sets and subsets of key query items in query subjects within the model the according to rules for computation of the dimensional information;
c) code for accepting an input request from a user to define contents of the report;
d) code for determining an expression to extract data from the database to fulfill the input request;
e) code for decomposing the expression into subqueries using the hierarchy of sets and subsets of key query items to prevent multiple counting of data;
f) code for accessing the data using the subqueries; and
g) code for producing the report. - View Dependent Claims (6)
-
Specification