~/talk

Timespan Fact Tables

Talkat SQLBits 2024 · 2024-03-19..03-23· [data-engineering, databases]
links:none on file
slides:none on file

A single fact table stores time ranges by adding valid_from/valid_to/is_current and a concatenated date range key, then a date range bridge explodes those ranges to individual date keys so a date dimension can filter facts. A 5‑day bank example uses only three fact rows that produce 4,222 bridge rows, renders correctly in Power BI, and simplifies orchestration to one stored procedure; tradeoffs are heavier upserts, longer ETL, and managing a many‑to‑many relationship with filter direction.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:01Speaker background
  3. 2:18Storing history in facts
  4. 5:26Periodic snapshotting
  5. 8:15Time span fact tables
  6. 11:20Bridge table implementation
  7. 14:27Power BI demo
  8. 16:15Conclusions and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.