Building Intermediate/Marts Models
Last updated
Was this helpful?
Last updated
Was this helpful?
Developing intermediate and marts models requires understanding table relationships, writing complex joins, applying business logic, and ensuring consistent formatting. This process demands careful consideration of data relationships and performance implications.
DinoAI Agent can analyze your existing models, understand their relationships, and create properly structured intermediate models with appropriate joins.
I want to create an intermediate model which makes use of or allows me to understand data across races as well as constructor and driver standings for the season.
After you enter your prompt:
DinoAI analyzes the structure of your provided models
It identifies the relationships between tables (e.g., foreign keys)
It creates a new model with properly structured CTEs and join conditions
If configured, DinoAI applies your .dinorules preferences
DinoAI will generate professional quality model(s). See example below:
Relationship Understanding: Correctly identifies and implements join conditions
Code Organization: Creates well-structured CTEs that make the logic easy to follow
Proper Formatting: Maintains consistent SQL style according to your standards
Time Savings: Reduces complex model development from hours to minutes
Visualization: Can generate mermaid diagrams to visualize data flow when using .dinorules
When building analytical models that combine multiple data sources
When implementing complex business logic across several tables
When standardizing existing intermediate/marts models
When exploring new analytical capabilities from your existing data