Structured Database Mapping for Minimal SQL Join Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Relational databases require specialized knowledge of SQL syntax and deep understanding of the database structure, limiting their usability to a small subset of users and leading to inefficient use of computing resources.

Innovation Solution

A computing system accesses a mapping file that includes predefined join operations and classification information for relational databases, dynamically selecting a minimum set of join operations based on user input to retrieve desired data elements without requiring SQL knowledge.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If relational databases use traditional SQL querying methods, then data retrieval accuracy is maintained, but system complexity increases and requires specialized knowledge

Engineering Contradiction:
ImproveUsability of database queryingVSAvoidSQL syntax knowledge requirement
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent introduces a natural language processing intermediary layer between the user and the relational database. This mediator translates user-friendly natural language queries into SQL commands, eliminating the need for users to learn SQL syntax while maintaining database querying functionality. The intermediary handles the complexity of SQL translation automatically.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the mechanical requirement of learning and typing SQL syntax with an automated natural language processing system. Instead of requiring users to manually construct SQL statements with specific syntax rules, the system automatically generates appropriate SQL queries from natural language input, substituting the manual mechanical process with an intelligent automated one.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Ease of operation

If relational databases allow flexible querying by non-experts, then ease of operation improves, but computing resource usage increases

Engineering Contradiction:
ImproveAccessibility to non-expert usersVSAvoidComputing resource consumption
Core Design Contradiction:
Ease of operationVSUse of energy by moving object

Solution Approach 1:

The patent implements preliminary action by pre-compiling and caching the results of natural language to SQL translations for common query patterns. When similar queries are received, the system retrieves pre-computed results or optimization plans from cache, avoiding repeated complex processing and reducing computing resource consumption while maintaining ease of use for non-expert users.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If the system dynamically generates SQL queries based on user input, then adaptability improves, but processing time increases

Engineering Contradiction:
ImproveQuery flexibilityVSAvoidQuery processing time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system performs preliminary analysis of the database schema and pre-generates optimized query templates for common data access patterns. When a user submits a natural language query, the system matches it against these pre-prepared templates rather than generating queries from scratch, significantly reducing processing time while maintaining adaptability to different query requirements.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a dynamic query optimization system that adapts the level of processing based on the complexity and type of the incoming query. For simple, common queries, the system uses pre-computed optimization paths, while for complex or novel queries, it performs full dynamic generation. This dynamic approach balances adaptability with processing efficiency.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20260017259A1Structured database mapping for dynamic structured query language (SQL) generation
Publication Date: 2026.01.15 SAS INSTITUTE INC
  • US20260017259A1 patent drawing
  • US20260017259A1 patent drawing
  • US20260017259A1 patent drawing

AI summary

A mapping file for a relational database comprising a plurality of tables is accessed. The tables comprise a plurality of data elements. The mapping file comprises predefined join operations that each define a join between two of the tables and a corresponding join type. The mapping file further includes classification information that associates the data elements with element classes. A selection of target data elements is received, the target data elements being associated with a common element class and from at least two different tables. A minimum set of join operations necessary to retrieve the target data elements is dynamically selected from the mapping file in response to receiving the selection. A unit of software instructions is generated and executed to retrieve the target data elements and a structured data object comprising the target data elements is output.SAS Institute Inc.