etl - DWH import with surrogate keys (and SCD) -


I have a data warehouse which uses the internal surrogate key and gradually changes 2 dimensions. I have the clearing The ARP-system has a business key, such as:

Sorry for image clearing; There is not enough reputation to post more than two links

In the data warehouse, we want to use the rental keys instead (th Please note: This article prices went changed from $ 500're using $ 1,000 and articles surrogate keys is possible, even only for producers).

image data warehouse

If we just use the business key It was not a problem, just compare, update old entries, insert new entries, but what is the best way to do this with surrogate keys?

Obtaining the current ID (0 or -1 still does not exist) from the data warehouse in the clearing, and then compare the entries?

Enter image details here

Business in the Data Warehouse Keep the keys, Compare them and update the ID in the data warehouse?

i.pictr.com/3kqn6wb9ou.png Being able to lookup while loading the table For example -> </ p> </ div> <p> <div class =

article, when you load while referring to a producer, you have natural in DWH The business key must be stored. From my experience, it is always done.

But you should only store the source unit's business key in the destination unit. Explain to me, the manufacturer's business key should appear only in the manufacturer table in its DWH, and not anywhere else. When you need to refer to the manufacturer in separate tables, such as paragraph, you use the manufacturer's own rental key.

So, you got it in another screenshot.

Then, when you load the paragraph table and you should know that the manufacturer has changed for a particular article, then you first look at the manufacturer's surrogate key based on your business key and Compare key to key with key. Article table is usually done this way.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -