Query Generator With Replaceable Tokens For Database Reporting

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing query generation methods for relational databases are inflexible, requiring separate queries for different filtering and calculation operations, leading to increased effort and storage needs, especially in large data warehousing applications where managing extensive data results is challenging.

Innovation Solution

A query generator that analyzes input queries for replaceable tokens, allowing users to input parameters for conditional expressions and calculations, generating diverse reports from a single query, and utilizing persistent parameter definitions to validate and manage user input, reducing data inconsistency and administrative burden.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If separate queries are created for different filtering and calculation operations, then the query can operate in exactly the same way each time it is executed, but the effort required to build and maintain the queries increases significantly and storage capacity requirements increase

Engineering Contradiction:
Improvequery consistencyVSAvoidquery management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements a single query template that can perform multiple filtering and calculation operations by accepting different parameter inputs. Instead of creating separate queries for each operation, the system uses a universal query structure with parameter placeholders that can be dynamically instantiated with different values, achieving multi-functionality while reducing complexity

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent uses parameter substitution to transform a single query template into multiple specific queries. By defining parameters with default values and allowing dynamic parameter assignment, the system can adapt the same query structure to different filtering and calculation needs without modifying the core query logic, thus maintaining consistency while reducing management effort

Inventive Principle:
Principle #35Parameter changes

2Productivity

If a single query template with parameters is used, then the effort to build and maintain queries is reduced, but the query becomes more complex in terms of parameter management and validation

Engineering Contradiction:
Improvequery generation efficiencyVSAvoidparameter management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent performs preliminary actions by pre-defining parameter specifications, default values, and validation rules before the query is executed. The system prepares parameter templates with metadata that describes expected data types, constraints, and default values, so that when the query runs, parameter validation and substitution can proceed automatically without manual intervention, thus reducing complexity despite the single-template approach

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback mechanisms through parameter validation that check user inputs against predefined constraints and data types. The system provides feedback to users about parameter validity, required formats, and acceptable ranges, ensuring that parameter substitutions maintain query correctness. This automated validation reduces the burden of parameter management by preventing errors before they affect query execution

Inventive Principle:
Principle #23Feedback

3Quantity of substance

If extensive data results are returned from large database tables, then all available data is retrieved, but the results become difficult to manage and system resources are severely occupied

Engineering Contradiction:
Improvedata retrieval completenessVSAvoiddata manageability
Core Design Contradiction:
Quantity of substanceVSEase of operation

Solution Approach 1:

The patent applies local quality by allowing different parameters to control different aspects of data retrieval and filtering. Instead of retrieving all data uniformly, the system uses localized parameter substitutions to apply specific filtering criteria to different parts of the query (e.g., date ranges, category filters, numerical thresholds), enabling selective data retrieval that maintains completeness for needed data while reducing overall volume by filtering out unnecessary records

Inventive Principle:
Principle #3Local quality

4Loss of information

If hard copy reports are generated at regular time intervals, then continued flow of information is provided, but the creation process is time consuming and requires considerable expense

Engineering Contradiction:
Improveinformation continuityVSAvoidreport generation time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent creates a universal query template that can serve multiple reporting needs through parameter substitution. The same base query structure can generate different reports by changing parameter values (e.g., different time periods, different data filters, different calculation parameters), eliminating the need to create separate queries for each report. This multi-functionality maintains information continuity across regular reports while dramatically reducing creation time and expense

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS9934330B2Query generation
Publication Date: 2018.04.03 ORACLE INT CORP
  • US9934330B2 patent drawing
  • US9934330B2 patent drawing
  • US9934330B2 patent drawing

AI summary

A query generator is operable to generate a query for retrieving data that satisfy a conditional expression from a database, and/or perform an arbitrary calculation on at least part of the retrieved data. The query generator can receive an input query and analyze the query to ascertain whether it contains a replaceable token. If the query contains a replaceable token, the query generator can replace that token with user input specifying a parameter of the conditional expression and/or the arbitrary calculation, thereby generating an output query for retrieving the data that satisfy the conditional expression and/or performing the arbitrary calculation on the retrieved data.