Seeds for Static Reference Data in dbt
📖 Scenario: You are working on a data project where you need to use static reference data, like country codes and names, inside your dbt models. Instead of hardcoding these values in SQL, you will use dbt seeds to manage this static data easily and keep your project organized.
🎯 Goal: Learn how to create a seed file in dbt, configure it, use it in a model, and finally query the seeded data to see the results.
📋 What You'll Learn
Create a CSV seed file with country codes and names
Configure dbt to recognize the seed file
Write a dbt model that selects from the seed data
Run dbt commands to load and query the seed data
💡 Why This Matters
🌍 Real World
Static reference data like country codes, product categories, or status lists are common in data projects. Using dbt seeds helps keep this data organized and version controlled.
💼 Career
Data analysts and engineers often need to manage static data efficiently. Knowing how to use dbt seeds is a valuable skill for building maintainable data pipelines.
Progress0 / 4 steps