- Posts: 58
- Thank you received: 0
Comparing to various conditions
8 years 11 months ago #11634
by amathur
Comparing to various conditions was created by amathur
Hi,
What is the best way of doing the following thing in Advanced ETL Processor Ent.
If a source field "Country" attains different values according to following conditions:
Else If "Country" is among (Aus, Eng, SA, SL, Ind, Pak, Ire, NZ) then return value is "Base A"
Else If "Country" is among (Canada, US, Brazil,Swiz , Morocco, Afgan) then return value is "Base B"
Else If "Country" is among (Nigeria, Sene, Burma, Philip, Hondu) then return value is "Base C"
Else If "Country" is among (Tuni, Rio ) then return value is "Base D"
Else If "Country" = NULL then return value is "NULL"
Regards
Ayush
What is the best way of doing the following thing in Advanced ETL Processor Ent.
If a source field "Country" attains different values according to following conditions:
Else If "Country" is among (Aus, Eng, SA, SL, Ind, Pak, Ire, NZ) then return value is "Base A"
Else If "Country" is among (Canada, US, Brazil,Swiz , Morocco, Afgan) then return value is "Base B"
Else If "Country" is among (Nigeria, Sene, Burma, Philip, Hondu) then return value is "Base C"
Else If "Country" is among (Tuni, Rio ) then return value is "Base D"
Else If "Country" = NULL then return value is "NULL"
Regards
Ayush
Please Log in or Create an account to join the conversation.
- Peter.Jonson
-
- Offline
- Platinum Member
-
8 years 11 months ago #11635
by Peter.Jonson
Peter Jonson
ETL Developer
Replied by Peter.Jonson on topic Comparing to various conditions
Peter Jonson
ETL Developer
Please Log in or Create an account to join the conversation.
8 years 11 months ago #11636
by amathur
Replied by amathur on topic Comparing to various conditions
Hi Peter,
I could not get it. What I want is I have a target field as "Base" and based on the "country" which is my input, I want to fill values in "Base" field whether it is "BaseA" or "BaseB" or "BaseC" or "NuLL"
Thanks,
Ayush
I could not get it. What I want is I have a target field as "Base" and based on the "country" which is my input, I want to fill values in "Base" field whether it is "BaseA" or "BaseB" or "BaseC" or "NuLL"
Thanks,
Ayush
Please Log in or Create an account to join the conversation.
- Peter.Jonson
-
- Offline
- Platinum Member
-
8 years 11 months ago #11637
by Peter.Jonson
Peter Jonson
ETL Developer
Replied by Peter.Jonson on topic Comparing to various conditions
Post your screeshots than, so we can correct it
Peter Jonson
ETL Developer
Please Log in or Create an account to join the conversation.
8 years 11 months ago #11638
by amathur
Replied by amathur on topic Comparing to various conditions
Hi Peter,
Actually I am not able to think which field I should place where. In the example which you have sent I see [Phase1], [Phase2], [Phase3] but in my case there is only 1 target field i.e. "Base" and my input field is also 1, i.e. "Country" but I see 2 inputs in the example [Condition] and [Phase]. Not sure how is this example replicated in my case.
Thanks
Ayush
Actually I am not able to think which field I should place where. In the example which you have sent I see [Phase1], [Phase2], [Phase3] but in my case there is only 1 target field i.e. "Base" and my input field is also 1, i.e. "Country" but I see 2 inputs in the example [Condition] and [Phase]. Not sure how is this example replicated in my case.
Thanks
Ayush
Please Log in or Create an account to join the conversation.
8 years 11 months ago #11639
by admin
Mike
ETL Architect
Replied by admin on topic Comparing to various conditions
Here is a working example
PS.
We would really appreciate if from now on you will prepare sample data yourself before asking question
Mike
PS.
We would really appreciate if from now on you will prepare sample data yourself before asking question
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.