Dimension is a term in data management and data warehousing that refers to logical groupings of data such as geographical location, customer information, or product information. Slowly Changing Dimensions (SCD) are dimensions that have data that slowly changes.
For example, you may have a Dimension in your database that tracks the sales records of your company's salesmen. Creating sales reports seems simple enough, until a sales person is transferred from one regional office to another. How do you record such a change in your sales Dimension?
You could sum or average the sales by salesperson, but if you use that to compare the performance of sales people, that might give misleading information. If the sales person that was transferred used to work in a hot market where sales were easy, and now works in a market where sales are infrequent, his totals will look much stronger than the other salespeople in his new region, even if they are just as good. Or you could create a second sales-person record and treat the transferred person as a new sales person, but that creates problems also.
Dealing with these issues involves SCD management methodologies referred to as Type 0, 1, 2, 3, 4, and 6. Type 6 SCDs are also sometimes called Hybrid SCDs.
The most common slowly changing dimensions are Types 1, 2, and 3.
Type 0
Type 0 is used somewhat infrequently, to refer to an SCD where no effort has been made to deal with the issues.
Type 1
The Type 1 methodology overwrites old data with new data, and therefore does not track historical data at all. This is most appropriate when correcting certain types of data errors, such as the spelling of a name. (Assuming you won't ever need to know how it used to be misspelled in the past.)
Another example would be of a database table that keeps supplier information.
Another popular method for tuple versioning is to add effective date columns.
To query the Star Schema using the historic reference data as of the date of the delivery, the query looks like this:
Slowly Changing Dimensions — Unter dem Begriff Slowly Changing Dimensions (deutsch: sich langsam verändernde Dimensionen) werden im Data Warehousing Methoden zusammengefasst, um Änderungen in Dimensionstabellen zu erfassen und ggf. historisch zu dokumentieren. Im… … Deutsch Wikipedia
Dimension (data warehouse) — This article is about a dimension in a data warehouse. For other uses, see dimension (disambiguation). In a data warehouse, a dimension is a data element that categorizes each item in a data set into non overlapping regions. A data warehouse… … Wikipedia
Dimension à évolution lente — En informatique décisionnelle, on parle d une dimension à évolution lente (slowly changing dimension) lorsqu une dimension peut subir des changements de description des membres. Un client peut changer d’adresse, se marier, ... Un produit peut… … Wikipédia en Français
Dimension table — In data warehousing, a dimension table is one of the set of companion tables to a fact table. The fact table contains business facts or measures and foreign keys which refer to candidate keys (normally primary keys) in the dimension tables.… … Wikipedia
Degenerate dimension — Contents 1 The Kimball definition 2 Other uses of the term 3 See also 4 External reference 5 Notes … Wikipedia
Data warehouse — Overview In computing, a data warehouse (DW) is a database used for reporting and analysis. The data stored in the warehouse is uploaded from the operational systems. The data may pass through an operational data store for additional operations… … Wikipedia
Scd — The abbreviation, acronym, or initialism SCD has several different meanings:In medicine* Sperm chromatin dispersion test * Semen collection device [cite journal |author=Sofikitis NV, Miyagawa I |title=Endocrinological, biophysical, and… … Wikipedia
Change data capture — In databases, change data capture (CDC) is a set of software design patterns used to determine (and track) the data that has changed so that action can be taken using the changed data. Also, Change data capture (CDC) is an approach to data… … Wikipedia
Open Source Business Intelligence — L OSBI, acronyme de Open Source Business Intelligence, regroupe l ensemble des solutions et techniques liées au décisionnel et dont le modèle s appuie sur l Open Source. Ce concept, malgré la ressemblance, n a aucun rapport avec l Open Source… … Wikipédia en Français