ETL Operation - Return Primary Key
- by user302254
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.