Translating a relational query to a multidimensional query
First Claim
1. A method for translating a relational database query into a multidimensional expression language (MDX) database query comprising:
- parsing a relational database query into one or more relational database query tokens;
filtering zero or more of the one or more relational database query tokens based at least in part on business logic to create a set of filtered relational database query tokens, the filtering comprising;
removing a relational database query token, from the one or more relational database query tokens, responsive to determining that the relational database query token corresponds to a field not supported by a multidimensional database and is associated with a return of a dataset that exceeds a threshold;
identifying relevant metadata, from a metadata store, associated with metadata associated with the set of filtered relational database query tokens, the relevant metadata comprising current multidimensional metadata and trend related multidimensional metadata;
translating at least some relational database query tokens of the set of filtered relational database query tokens into one or more work item query language (WIQL) tokens;
retrieving a first group of one or more MDX tokens based at least in part on the relevant metadata;
retrieving a second group of one or more MDX tokens based at least in part on the one or more WIQL tokens;
arranging at least some of the one or more MDX tokens of the first group and at least some of the one or more MDX tokens of the second group based at least in part on the metadata associated with the set of filtered relational database query tokens; and
generating one or more MDX database queries for trend related information and current information based at least in part on at least some of the arranged MDX tokens, at least some of the parsing, the filtering, the identifying, the translating, the retrieving a first group, the retrieving a second group, the arranging, and the generating implemented at least in part via a processing unit.
2 Assignments
0 Petitions
Accused Products
Abstract
Data stored in relational databases can be retrieved using a relational database query language, while data stored in a multidimensional database is typically retrieved using a multidimensional database query language. However, most users do not have a functional working knowledge of multidimensional database query languages, which leaves large amounts of data inaccessible. Further, while some relational database query languages may be translated into a multidimensional database language, the information generated by such translations is often unusable, or returns large numbers of errors. In order to obtain effective translation of a relational database query language to a multidimensional database query language effective translation and filtering needs to occur. Using effective mapping and retrieval of database metadata along with effective, customizable business logic filtering of query components, more effective and reliable results may be achieved.
-
Citations
20 Claims
-
1. A method for translating a relational database query into a multidimensional expression language (MDX) database query comprising:
-
parsing a relational database query into one or more relational database query tokens; filtering zero or more of the one or more relational database query tokens based at least in part on business logic to create a set of filtered relational database query tokens, the filtering comprising; removing a relational database query token, from the one or more relational database query tokens, responsive to determining that the relational database query token corresponds to a field not supported by a multidimensional database and is associated with a return of a dataset that exceeds a threshold; identifying relevant metadata, from a metadata store, associated with metadata associated with the set of filtered relational database query tokens, the relevant metadata comprising current multidimensional metadata and trend related multidimensional metadata; translating at least some relational database query tokens of the set of filtered relational database query tokens into one or more work item query language (WIQL) tokens; retrieving a first group of one or more MDX tokens based at least in part on the relevant metadata; retrieving a second group of one or more MDX tokens based at least in part on the one or more WIQL tokens; arranging at least some of the one or more MDX tokens of the first group and at least some of the one or more MDX tokens of the second group based at least in part on the metadata associated with the set of filtered relational database query tokens; and generating one or more MDX database queries for trend related information and current information based at least in part on at least some of the arranged MDX tokens, at least some of the parsing, the filtering, the identifying, the translating, the retrieving a first group, the retrieving a second group, the arranging, and the generating implemented at least in part via a processing unit. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for translating a relational database query into a multidimensional expression language (MDX) database query comprising:
-
a component configured to; parse a relational database query into one or more relational database query tokens; filter zero or more of the one or more relational database query tokens based at least in part on business logic to create a set of filtered relational database query tokens, the filtering comprising; removing a relational database query token, from the one or more relational database query tokens, responsive to determining that the relational database query token corresponds to a field not supported by a multidimensional database or is associated with a return of a dataset that exceeds a threshold; identify relevant metadata, from a metadata store, associated with metadata associated with the set of filtered relational database query tokens, the relevant metadata comprising current multidimensional metadata and trend related multidimensional metadata; translate at least some relational database query tokens of the set of filtered relational database query tokens into one or more work item query language (WIQL) tokens; retrieve a first group of one or more MDX tokens based at least in part on the relevant metadata; retrieve a second group of one or more MDX tokens based at least in part on the one or more WIQL tokens; arrange at least some of the one or more MDX tokens of the first group and at least some of the one or more MDX tokens of the second group based at least in part on the metadata associated with the set of filtered relational database query tokens; and generate one or more MDX database queries for trend related information and current information based at least in part on at least some of the arranged MDX tokens. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A computer-readable storage device comprising computer-executable instructions, which when executed at least in part via a processor on a computer perform acts, comprising:
-
parsing a relational database query into one or more relational database query tokens; filtering zero or more of the one or more relational database query tokens based at least in part on business logic to create a set of filtered relational database query tokens, the filtering comprising; removing a relational database query token, from the one or more relational database query tokens, responsive to determining that the relational database query token at least one of corresponds to a field not supported by a multidimensional database or is associated with a return of a dataset that exceeds a threshold; identifying relevant metadata, from a metadata store, associated with metadata associated with the set of filtered relational database query tokens, the relevant metadata comprising current multidimensional metadata and trend related multidimensional metadata; translating at least some relational database query tokens of the set of filtered relational database query tokens into one or more work item query language (WIQL) tokens; retrieving a first group of one or more multidimensional expression language (MDX) tokens based at least in part on the relevant metadata; retrieving a second group of one or more MDX tokens based at least in part on the one or more WIQL tokens; arranging at least some of the one or more MDX tokens of the first group and at least some of the one or more MDX tokens of the second group based at least in part on the metadata associated with the set of filtered relational database query tokens; and generating one or more MDX database queries for trend related information and current information based at least in part on at least some of the arranged MDX tokens. - View Dependent Claims (18, 19, 20)
-
Specification