ETL Operation - Return Primary Key

Posted by user302254 on Stack Overflow See other posts from Stack Overflow or by user302254
Published on 2010-03-26T03:30:53Z Indexed on 2010/03/26 3:33 UTC
Read the original article Hit count: 698

Filed under:
|
|
|

I am using Talend to populate a data warehouse. My job is writing customer data to a dimension table and transaction data to the fact table. The surrogate key (p_key) on the fact table is auto-incrementing. When I insert a new customer, I need my fact table to reflect the id of the related customer.

As I mentioned my p_key is auto auto_incrementing so I can't just insert an arbitrary value for the p_key.

Any thought on how I can insert a row into my dimension table and still retrieve the primary key to reference in my fact record?

Thanks.

© Stack Overflow or respective owner

Related posts about talend

Related posts about etl