Organizing models in directories
📖 Scenario: You are working on a data project using dbt. Your project has many data models. To keep things neat and easy to find, you want to organize these models into folders (directories).Think of it like organizing your school notes into different notebooks by subject. This helps you find what you need quickly.
🎯 Goal: You will create a folder structure inside the models directory and place model files in the right folders. Then, you will write a simple model SQL file inside a folder.
📋 What You'll Learn
Create a folder named
sales inside the models directoryCreate a folder named
marketing inside the models directoryCreate a model file named
daily_sales.sql inside the sales folderWrite a simple SQL SELECT statement inside
daily_sales.sql that selects all columns from raw_sales table💡 Why This Matters
🌍 Real World
Organizing models in folders helps teams manage many data models clearly and avoid confusion.
💼 Career
Data analysts and engineers often organize dbt projects this way to improve collaboration and maintainability.
Progress0 / 4 steps