# Dimensional Data Modeling - Slowly-changing Dimensions and idempotent queries with Trino (Day 2 Lab)

> In this lab, we reinforce lecture concepts with a hands-on approach. We dive into implementing a Slowly Changing Dimension (SCD) table. Learn to track user activity changes using lag functions and identify active and inactive player seasons. We also tackle common errors in query optimization, provi…

- Web page: https://www.dataexpert.io/lesson/dimensional-data-modeling-day-2-lab-v3
- Program: [Data Engineering Boot Camp V2 Combined Track](https://www.dataexpert.io/program/data-engineering-boot-camp-v2-combined-track)
- Module: Week 1: Dimensional Data Modeling in Iceberg
- Access: Requires enrollment in Data Engineering Boot Camp V2 Combined Track
- Length: 1 h 3 min video
- Skills: SQL, Data Modeling, ETL/ELT, Trino
- Academy: DataExpert.io Academy

## About this lesson

In this lab, we reinforce lecture concepts with a hands-on approach. We dive into implementing a Slowly Changing Dimension (SCD) table. Learn to track user activity changes using lag functions and identify active and inactive player seasons. We also tackle common errors in query optimization, providing practical solutions for a real-world understanding. Watch the video for step-by-step guidance on implementing SCDs in your data pipelines. [Recorded Nov 8, 2023]

## Navigation

- Previous lesson: [Dimensional Data Modeling - Complex Data Types Arrays and Structs with Iceberg (Day 1 Lecture)](https://www.dataexpert.io/lesson/dimensional-data-modeling-day-1-lecture-v3.md)
- Next lesson: [Dimensional Data Modeling - Slowly-changing Dimensions and Idempotent Queries in Iceberg (Day 2 Lecture)](https://www.dataexpert.io/lesson/dimensional-data-modeling-day-2-lecture-v3.md)
