Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMysqlSCD & Update Type 1 & 2

Hi,

 

I have issue when I Use tMysqlScd with type 1 & 2 columns.

 

Exemple : 

 

Sur Key BusKey City (Type 1) Mail (type 2)   Flag
1 adam NY adam@telco.com   1

 

If I had new line with change with City & Mail, the information "NY" is lost. 

 

Sur Key BusKey City (Type 1) Mail (type 2) Flag
1 adam SA adam@telco.com 0
2 adam SA adam.sa@telco.com 1

 

The result I expected was

 

Sur Key BusKey City (Type 1) Mail (type 2) Flag
1 adam NY adam@telco.com 0
2 adam SA adam.sa@telco.com 1

 

 

Therefore, if i Had new line, all type 1 were updated like a Type 6

 

Sur Key BusKey City (Type 1) Mail (type 2) Flag
1 adam LA adam@telco.com 0
2 adam LA adam.sa@telco.com 0
3 adam LA adam.la@telco.com 1

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Tks but SCD doen't match with my specific case.

 

I develop complementary process to do what I want.

 

 

View solution in original post

6 Replies
manodwhb
Champion II
Champion II

can you show the tMysqlScd configuration?

dasari16
Contributor II
Contributor II

Based on your Inputs, I just designed a job and attached the screen shots. Kindly refer and let me know if that helps you to move fwd.

 

 

 

0683p000009Lt4E.jpg0683p000009Lsqs.jpg0683p000009LsnU.jpg0683p000009LsyO.jpg 

Anonymous
Not applicable
Author

Tks dasari16

 

You use City as Type 2, in my case City is Type 1.

 

To explain more my case

 

Sur Key BusKey City (Type 1) Mail (type 2)   Flag
1 adam NY adam@telco.com   1

 

If I had new line with change only with City (NY to SA) I expected only update

 

Sur Key BusKey City (Type 1) Mail (type 2) Flag
1 adam SA adam@telco.com 1

 

If I had change in City AND Mail, I expected only update on FLAG, start_date for last row and new values for new rows

 

Sur Key BusKey City (Type 1) Mail (type 2) Flag
1 adam NY adam@telco.com 0
2 adam SA adam.sa@telco.com 1

 

manodwhb
Champion II
Champion II

if you use City as type1,then you will always have latest city.you may need to change city to type2.

manodwhb
Champion II
Champion II

@pierre,did it help you?

Anonymous
Not applicable
Author

Tks but SCD doen't match with my specific case.

 

I develop complementary process to do what I want.