【发布时间】:2019-12-27 01:51:24
【问题描述】:
谁能帮助我在 Informatica PowerCenter 中的表达式转换中编写以下 case 语句?
Case When STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null and BI_Outcome__c is null then 'PA Required'
when STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null
Then Decode (BI_Outcome__c, 'PA Appeal Pending', 'PA Appeal Required','PA Pending','PA Required',BI_Outcome__c)
when STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null Then 'Approved'
when STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null Then 'Denied'
when Outcome__c='PA Pending' then 'PA Required'
When Outcome__c='PA Appeal Pending' then 'PA Appeal Required'
when STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null Then 'Approved'
when STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null Then 'Denied'
else Outcome__c end
【问题讨论】:
-
除了最后两个 when 子句与第三个和第四个 when 子句重复之外,您的代码还有什么问题?预期输出是什么?
标签: oracle informatica informatica-cloud