Generic Database Query Template for Multi-Table Access

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database systems require specific coding for each database table, leading to inefficiencies when tables are added, modified, or deleted, as the coding must be adapted or rewritten, making it difficult to access data from multiple tables with different structures.

Innovation Solution

The implementation of a generic query that is independent of a particular database layout, allowing access to multiple database tables with varying structures using a common index field and placeholder fields, enabling reuse without the need for additional coding modifications.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If specific coding is written for each database table's structure, then data access accuracy is improved, but adaptability deteriorates when tables are added, modified, or deleted

Engineering Contradiction:
Improvedata access accuracyVSAvoidadaptability to table changes
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent applies universality by creating a generic query template that can access multiple database tables with different structures. The template uses placeholder fields that can be dynamically replaced with actual field names, allowing a single query design to serve multiple tables without requiring separate coding for each table structure.

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

Solution Approach 2:

The patent utilizes parameter changes by introducing placeholder fields as parameters in the generic query template. These placeholders can be dynamically substituted with specific field names depending on which database table is being accessed, allowing the same query structure to adapt to different table schemas by changing only the parameter values.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If database tables are normalized into multiple tables, then data efficiency and performance are improved, but coding complexity increases for accessing each table

Engineering Contradiction:
Improvedata access efficiencyVSAvoidcoding complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The generic query template provides a universal access mechanism that works across multiple normalized database tables. Instead of writing separate access code for each normalized table, the same template can be used for all tables, reducing coding complexity while maintaining the performance benefits of normalization.

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

Solution Approach 2:

The placeholder fields act as an intermediary between the generic query template and the specific database table structures. This intermediary layer allows the query to be written at a high level without needing to know the specific structure of each normalized table, simplifying the coding process while still enabling efficient access to normalized data.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If coding is rewritten for each table modification, then data access reliability is improved, but maintenance time increases

Engineering Contradiction:
Improvedata access reliabilityVSAvoidmaintenance time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The generic query template maintains reliability by providing a consistent access pattern across all database tables. When tables are modified, the template's use of placeholder fields allows it to automatically adapt to new structures without requiring code rewrites, thus maintaining reliable data access while reducing maintenance time.

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

Solution Approach 2:

The patent applies preliminary action by pre-defining the query structure with placeholder fields that anticipate future table modifications. This preliminary design allows the query to be written once in a generic form that can accommodate various table structures, eliminating the need for repeated rewrites when tables are modified and reducing maintenance time while preserving access reliability.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS8606799B2Software and method for utilizing a generic database query
Publication Date: 2013.12.10 SAP SE
  • US8606799B2 patent drawing
  • US8606799B2 patent drawing
  • US8606799B2 patent drawing

AI summary

This disclosure provides various embodiments of software for identifying and utilizing a generic database query. In one aspect, the software identifies a generic query such that the generic query is independent of a particular database layout, and accesses a database table having a first layout using the generic query. In some implementations, the software may comprise a business application associated with a database, where the generic query is embedded in the business application without knowledge of the associated database's table layout. In other implementations, the generic query may be embedded in the software before the database table is created.