cancel
Showing results for 
Search instead for 
Did you mean: 

Validation Tranform - Concatenation of two columns in a condition

Former Member
0 Kudos

Hi All,

I have two tables TableA and TableB.

TableA Data:

C4C5
A100ABC
B200BBB
C300ABC
D400BBB
E500ABC
F600BBB
G700ABC
H800BBB

TableB Data:

C1C2C3
A100xxxx
B200xxxx
C300xxxx
D400xxxx
G700xxxx
H800xxxx

I want to load the data to TableC with columns C6 and C7.

My Data flow is like this:

TableA --> Validation Transform --> Pass--> TableC

I want give the condition  TableA.C4=TableB.C1||C2. How to do that?

Please advise.

TableC Data:

C4C5C3
A100ABCxxxx
B200BBBxxxx
C300ABCxxxx
D400BBBxxxx
G700ABCxxxx
H800BBBxxxx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aretha,

Create one dummy column in Table B with concatenation of B.Dummy = B.C1 + B.C2 and then use this dummy one in the validation transform , Again in Validation transform use custom condition to compare column values to validate.

Thanks..

Former Member
0 Kudos

HHi Srinivas,

I don't want to create new column in TableB.

IS there any other way to do?

Thanks

Former Member
0 Kudos

Hi Aretha,

Just create a dummy column and delete before target. or you can use Query transform to do this

Former Member
0 Kudos

Hi Arthera,

In that case use Concatenation directly in custom function in validation transform

Thanks,

Former Member
0 Kudos

How to do this in custom validation? I am unable to do this.

Please help me.

Answers (1)

Answers (1)

Former Member
0 Kudos

Dirk Venken

Please help me.

Former Member
0 Kudos

Choose custom condition and add the formula in condition editor

Former Member
0 Kudos

Hi Srinivas, Thanks for the screens.

But your screens shows same query data set.

I want map like this for two different data sets or tables:

TableA.C4=TableB.C1 || TableB.C2

Former Member
0 Kudos

I am lazy to keep full query, try keeping what ever you want

former_member187605
Active Contributor
0 Kudos

Don't use a Validation transform here, it makes no sense.

The only thing you need is a Query transform, simply joining both tables with the condition TableA.C4=TableB.C1 || TableB.C2, as explained by