简体   繁体   English

Informatica 表达式转换逻辑更改

[英]Informatica Expression transformation logic change

I have a code in Informatica that is currently rejecting any record that has a ROLE_ID other than ' Primary Annuitant ', I need to make a change to reject any record with ROLE_ID other than ' Secondary Annuitant ' and ' Primary Annuitant '.我在Informatica中有一个代码,目前拒绝任何ROLE_ID不是“ Primary Annuitant ”的记录,我需要进行更改以拒绝任何ROLE_ID不是“ Secondary Annuitant ”和“ Primary Annuitant ”的记录。

Here is the current logic这是当前的逻辑

IIF(ROLE_ID<>'PRIMARY ANNUITANT ','Invalid ROLE_ID'),

Need to stop Rejecting ' Secondary Annuitant '需要停止拒绝“次要年金

Please Advise请指教

You can rewrite the IIF in many ways.您可以通过多种方式重写IIF

IIF(ROLE_ID<>'PRIMARY ANNUITANT ' AND ROLE_ID<>'SECONDARY ANNUITANT ','Invalid ROLE_ID'),

OR或者

IIF(ROLE_ID<>'PRIMARY ANNUITANT ' ,
 IIF (ROLE_ID<>'SECONDARY ANNUITANT ','Invalid ROLE_ID')),...

OR或者

IIF(NOT IN(ROLE_ID,'PRIMARY ANNUITANT ','SECONDARY ANNUITANT ',0),'Invalid ROLE_ID')...

This will produce 'Invalid ROLE_ID' in case of anything other than primary and secondary annuitant.如果不是主要和次要年金,这将产生“无效的 ROLE_ID”。 Pls note also I just reused your code and i am not sure about all of your code.请注意我刚刚重用了你的代码,我不确定你的所有代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL / Informatica中的IIF语句(表达式转换)具有两个值 - IIF statement in SQL/ Informatica ( expression transformation) with two values 如何在 Informatica 表达式转换中实现 case when 语句 - How do i implement a case when statement in Informatica expression transformation 使用 Group By 进行 Informatica 排名转换 - Informatica Rank Transformation with Group By Informatica表达式转换中必需的get_date oracle sql函数替换 - Required get_date oracle sql function replacement in informatica expression transformation 如果列包含特定字符串,则结果为 NULL 否则为另一列,如何在 informatica 中应用此表达式转换? - If column contain particular string then result is NULL else another column, how to apply this Expression Transformation in informatica? Informatica 中用于 Google Bigquery 的 SQL 转换 - SQL Transformation in Informatica for Google Bigquery Informatica SQL 转换中的联接查询失败 - Join query failing in Informatica SQL transformation 如何将 Informatica 的 Normalizer Transformation 转换为 SQL 查询? - How to convert Normalizer Transformation of Informatica into SQL query? 关于informatica电力中心改造任务的问题 - Question on informatica power center transformation task 从Informatica的SQL Transformation获取多输出 - Fetch multi output from SQL Transformation at Informatica
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM