Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

How to avoid duplicated by placing surrogate_key in target table

$
0
0

Hi,

 

I have source table like this

 

Employee_ID,Position

1001,Marketing

1001,Sales

1002,Logistics

1002,Management

1003,Internal

1003,Assistant

1003,Assistant

 

and my target should be like this

S_key, Employee_ID,Position

1,1001,Marketing

2,1001,Sales

3,1002,Logistics

4,1002,Management

5,1003,Internal

6,1003,Assistant

 

I have develop my data flow with below transformation but i am getting source data as well as.

Source-->Query-->Table Comparsion-->Key_Generation-->Target

 

please suggest me how to avoid the duplicates using key_generation

 

Thanks

Murali


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>