Skip to content

SCD Type 6

A slowly changing dimension technique that keeps a full history of rows for an attribute and also carries the attribute's current value on every one of those rows. Facts can then be grouped by the value in effect at the time or by the value today.

Also: slowly changing dimension type 6 · Type 6 SCD · hybrid SCD · hybrid slowly changing dimension

On this page · 7 sections
  1. Definition
  2. Example
  3. Why it matters
  4. Common mistakes
  5. FAQ
  6. Go deeper
  7. Related terms

SCD Type 6 gives each version of a dimension row two copies of a tracked attribute. One column holds the value that was true while that version was in effect and never changes. The other holds the current value and is rewritten on every version whenever the attribute changes. A customer who moved from Denver to Austin has an old row reading Denver and Austin, and a new row reading Austin and Austin.

The Kimball Group's name for it is Type 6: Add Type 1 Attributes to Type 2 Dimension. The history rows, effective dates, and current-row flag are Type 2. The current-value column is overwritten the way Type 1 overwrites, and it resembles the added column of Type 3. That combination is why the technique is called a hybrid of Types 1, 2, and 3, and where its number comes from: both 1 + 2 + 3 and 1 x 2 x 3 equal 6.

Fact rows join to the version that was current when the event happened, as in any Type 2 dimension. From that one join a query can group by the historical column to see sales as they were, or by the current column to see all history restated under today's assignment. The cost falls on the load: each change touches every existing row for that entity.

-- Customer C-17 moves from Denver to Austin on 2026-04-01.

-- 1. Close the current row.
update dim_customers
set valid_to = '2026-04-01', is_current = false
where customer_id = 'C-17' and is_current = true;

-- 2. Add a row for the new value.
insert into dim_customers
  (customer_key, customer_id, city, current_city, valid_from, valid_to, is_current)
values
  (3, 'C-17', 'Austin', 'Austin', '2026-04-01', '9999-12-31', true);

-- 3. Overwrite the current value on every row for the customer.
update dim_customers
set current_city = 'Austin'
where customer_id = 'C-17';

-- Report the same facts both ways.
select
  d.city as city_at_sale,
  d.current_city,
  sum(f.amount) as sales
from fct_sales f
join dim_customers d on d.customer_key = f.customer_key
group by d.city, d.current_city
order by d.city, d.current_city;
One change, three statements, then both views from one join. In the sample data, customer C-17's 500 of sales before the move reports as Denver by city_at_sale and Austin by current_city; the 400 sold after the move is Austin in both.
Why it matters

Reports often need both views of the same numbers. Finance wants last year's sales under the territories that existed then, and the sales director wants them under the territories that exist now. Type 6 serves both from one dimension and one join.

The extra update is the tradeoff. Rewriting the current value across all versions is cheap for a dimension that changes rarely and expensive for one with long histories and frequent changes. Kimball's Type 7 delivers the same two views with two keys in the fact table instead of rewriting.

Common mistakes
  • Updating the current-value column only on the newest row. Older versions then keep a stale value, and grouping by the current column splits one customer across two cities.
  • Naming the two columns so that nobody can tell them apart. Prefix the overwritten one, as in current_city, and say in the documentation which one is historical.
  • Adding a current copy of every attribute by default. Each pair doubles the columns to maintain; add one where a report needs both views.
FAQ
Why is it called SCD Type 6?
Because it combines three techniques whose numbers add up to six: the versioned rows of Type 2, an extra column in the manner of Type 3, and overwriting that column as Type 1 does. A Kimball Group design tip notes that the three numbers give 6 whether added or multiplied, and credits the name to a suggestion from an HP engineer in 2000.
What is the difference between SCD Type 2 and Type 6?
Type 2 keeps one row per version, each holding the values that were true during that version. Type 6 is the same structure plus a current-value column that is kept identical across all of an entity's versions. Type 2 alone reports history as it was; Type 6 can also restate all history under the current value without joining back to the current row.
When should you use SCD Type 6?
Use it when the same attribute must be reported both as it was at the time of each event and as it is now, and the dimension does not change so often that rewriting every version is a burden. Sales territory, account manager, and product category are typical candidates. If only one view is ever needed, the simpler technique for that view is enough.