# \#snapshot

**URL:** https://discuss.dataengineercafe.io/tag/snapshot/61.md

[Latest](https://discuss.dataengineercafe.io/latest.md) · [Categories](https://discuss.dataengineercafe.io/categories.md) · [Tags](https://discuss.dataengineercafe.io/tags.md)

---

## [Dbt Snapshots ของดีที่ช่วยให้เราทำ Type-2 SCD เพื่อเก็บข้อมูลย้อนหลังได้](https://discuss.dataengineercafe.io/t/dbt-snapshots-type-2-scd/135)

<div class="topic-metadata">

**Author:** [@zkan](https://discuss.dataengineercafe.io/u/zkan)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 1:22am UTC](https://discuss.dataengineercafe.io/t/dbt-snapshots-type-2-scd/135 "2022-03-17T01:22:36Z")

</div>

เคยพูดถึงเรื่อง Type-2 Slowly Changing Dimension (SCD) คือ? ไปแล้ว เราสามารถที่จะ implement ได้โดยอาจจะเก็บ table หนึ่งไว้ก่อน (ทำ snapshot) แล้วหลังจากนั้นก็เทียบกันระหว่าง table ต้นทางกับ snapshot ดูว่ามีแถวไหนมีอะไรเป…
