Spreadsheet Formula Translation to Database Queries at Scale
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Spreadsheet programs like Microsoft Excel and Google Sheets are inadequate for complex financial analysis tasks, particularly with large datasets, and require technical skills to transition data to databases, posing a barrier for users accustomed to spreadsheet environments.
Innovation Solution
A method and system that converts spreadsheet formulas into database queries without requiring users to understand database queries, using abstract syntax trees and relational algebra to generate optimized SQL queries, enabling seamless data transfer and analysis.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If spreadsheet programs are used for financial analysis, then ease of operation is improved, but handling capability for complex tasks and large datasets deteriorates
Solution Approach 1:
The patent introduces an intermediary system that translates spreadsheet formulas into database queries. This mediator enables users to work with spreadsheet-like interfaces while automatically leveraging database capabilities for complex data handling, thus resolving the contradiction between ease of operation and handling capability.
Solution Approach 2:
The system provides universal functionality by combining the user-friendly interface of spreadsheets with the powerful data handling capabilities of databases. A single platform delivers both ease of use and complex task处理能力 through automated formula-to-query translation.
2Adaptability or versatility
If data is transferred from spreadsheet to database, then handling capability for large datasets is improved, but device complexity deteriorates
Solution Approach 1:
The system performs self-service by automatically translating spreadsheet formulas into database queries without requiring user intervention or expertise in database operations. The translation process is automated, reducing the perceived complexity for users while maintaining advanced handling capabilities.
Solution Approach 2:
The patent segments the complex process of data transfer and query generation into manageable components: formula parsing, abstraction tree generation, query synthesis, and execution. This segmentation hides complexity while delivering robust data handling capabilities.
3Adaptability or versatility
If database queries are used directly, then handling capability for large datasets is improved, but ease of operation deteriorates
Solution Approach 1:
The patent introduces an intermediary translation layer that converts user-friendly spreadsheet formulas into database queries. This mediator shields users from the complexity of SQL and database operations while maintaining access to powerful data handling capabilities.
Solution Approach 2:
The system creates a copy of the spreadsheet formula semantics in the database query domain through abstract syntax trees and relational algebra translation. This copying mechanism preserves the ease of spreadsheet operation while enabling database-level data handling.
Data Source
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.


