This repository contains a beginner-level dbt (Data Build Tool) project focused on transforming data stored in a MySQL database.
This is a simple ETL (Extract, Transform, Load) step designed for foundational sales analysis. The transformation logic joins the raw customer order data (orders) with customer details (customers) to calculate the total number of orders and the total amount spent per customer.
- Transformation Tool: dbt Core (using Jinja SQL)
- Database: MySQL
The core logic resides in the models/ directory:
sources.yml: Defines the two source tables (ordersandcustomers) from the MySQL database.orders_summary.sql: Contains the SQL logic that performs theJOINandGROUP BYoperations to create the final analytical model.
- Learn more about dbt in the docs
- Check out Discourse for commonly asked questions and answers
- Join the chat on Slack for live discussions and support
- Find dbt events near you
- Check out the blog for the latest news on dbt's development and best practices