are u talking about surrogate key ?
Because surrogate keys are sequential in nature so are also called squential key.
let me know if this is what you are intending , if yes i will give you explanation on surrogate key.
surrogate keys do not have to be sequential. They are also known as non-intelligent keys and are keys assigned to records independent of the production code i.e. a product with a SKU of 11234 would be assigned a surrogate key independent of the code 11234 and this would be stored as the unique key in the warehouse for this record not the production code.
Why ? One big reason is that if you have slowly changing dimensions then the production code would not maintain its unique status as it would need to be stored in the dimension table twice - original record and the updated record with new attribute.
Theortically the surrogate key need not be sequential but when you implement DW using surrogate key they are generally sequential. The advantage is that the look up coding become more easier and a simple query of max surrogate key or the surrogate table will give you the number of records in the dimension tables.
Ok now about surrogate keys. According to RK the design of datwarehouse should be isolated from changes made to the operational data source. So if you have a product dimension and the source has a product master with product no as primary key. The dimension table should not have productno as it key but instead a alias key (surrogate key) should be generated for each unique record in the operational system. now in the example i have given the information may look redundant but it is very useful in case the operational system has composite primary key and as mentioned to capture history of slowly changing dimension values.
We always use surrogate keys when creating new fact and dimension tables. We had some old tables and ETL code around that didn't use them, and we haven't got around to retrofitting. As far as I can tell, surrogate keys started to turn up around 1997 - 98, though I really haven't done an exhaustive search. Kimball didn't talk about them in his earlier book - The Data Warehouse Toolkit, 1996. But they are in his Lifecycle Toolkit, 1st edition, 1998. I think they were mentioned in magazine articles before that.
Hi, surrogate keys are easy to generate both in Informatica and Datastage, and yes, thery are important for slowly changing dimension. By the way, in which way can I realize the slowly changing dimension in Datastage?
Thank you for your attention.
Bye.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.