Spreadsheet-to-Database Conversion Using Expression Trees

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing spreadsheet programs are inadequate for complex financial data analysis and management, particularly with large datasets, lacking scalability, robust security, and requiring technical expertise for database integration.

Innovation Solution

A method and system that converts spreadsheet formulas into database queries, such as SQL queries, without requiring users to understand database management, using an abstract syntax tree and expression tree to generate algebra expressions and execute queries against data sources, with output in a tabular format.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If spreadsheet programs are used for financial data analysis, then ease of operation is improved, but productivity deteriorates when handling large datasets

Engineering Contradiction:
Improveease of operationVSAvoidproductivity
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The system introduces an intermediary translation layer that converts spreadsheet formulas into database queries. This mediator component parses spreadsheet formula syntax and transforms it into equivalent SQL or database query language, allowing users to work with spreadsheet-like interfaces while leveraging database power for large-scale data processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system provides multi-functionality by enabling a single interface to handle both simple spreadsheet operations and complex database queries. The formula translation engine can process various spreadsheet functions (SUM, AVERAGE, COUNT, custom formulas) and convert them to appropriate database operations, making the system universally applicable across different data analysis needs.

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

2Productivity

If database queries are used directly, then productivity is improved, but ease of operation deteriorates due to technical expertise requirements

Engineering Contradiction:
ImproveproductivityVSAvoidease of operation
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The translation system acts as an intermediary that shields users from complex database query syntax. Users write familiar spreadsheet formulas, and the system automatically translates them into optimized database queries, eliminating the need for users to learn SQL or database-specific syntax while still achieving high productivity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system copies the familiar spreadsheet formula syntax and semantics into the database query context. By maintaining the original spreadsheet formula structure and logic, users can work with copied spreadsheet expressions that are automatically transformed into database operations, preserving ease of operation while gaining database productivity.

Inventive Principle:
Principle #26Copying

3Ease of operation

If spreadsheet programs handle large datasets, then ease of operation is maintained, but reliability deteriorates

Engineering Contradiction:
Improveease of operationVSAvoidreliability
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The system introduces a mediator layer that manages the interaction between spreadsheet interfaces and database backends. This intermediary handles data retrieval, processing, and return operations, ensuring reliable data handling by leveraging database ACID properties and transaction management while maintaining spreadsheet-like ease of operation for users.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentEP4579516A1Methods and systems for spreadsheet to database conversion
Publication Date: 2025.07.02 HIGHRADIUS CORP
  • EP4579516A1 patent drawingFigure 1
  • EP4579516A1 patent drawingFigure 2
  • EP4579516A1 patent drawingFigure 3

AI summary

The present invention is related to data processing methods and systems thereof. According to an embodiment, the present invention provides a method of receiving a first formula or a query in the spreadsheet interface comprising a first formula. Next, an expression tree is generated using at least the first formula or an abstract syntax tree. The expression tree can be organized hierarchically. The method can continue by obtaining a first algebra expression using at least the expression tree and generating at least a first database query using at least the first algebra expression. Next, the first database query can be executed against at least a first data source to obtain a first result and the first result can be processed to provide an output. There are other embodiments as well.