Method for automatically generating SQL statements based on dimension model
A dimensional model and dimension technology, applied in the field of automatic generation of SQL statements based on dimensional models, can solve the problems of difficult maintenance and optimization, and the generation of SQL query statements is not efficient and accurate, so as to achieve easy maintenance and optimization, improve generation efficiency and accuracy, reduce The effect of coding workload
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] In order to efficiently and accurately generate complex SQL query statements in OLAP and make data analysis easier, the present invention discloses a method for automatically generating SQL statements for analytical queries based on a dimensional model. The implementation steps are as follows
[0024] 1. Build a dimensional model:
[0025] Define a dimensional model according to the estimated query scenario and the relationship between tables, corresponding to the target data table of the database.
[0026] 2. Construct the SQL syntax tree:
[0027] Build a data model and add mapping annotations. According to the dimension model, analyze and determine the select and from information in the SQL query, and generate the data model of each scene; add mapping annotations to the data model according to the table name, table field attributes, query parameters, aggregation conditions, sorting conditions, and function calculations.
[0028] According to the SQL syntax rules, c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


