【问题标题】:Decode function in etl informaticaetl informatica中的解码功能
【发布时间】:2021-08-13 05:16:58
【问题描述】:
Decode(false,
ivar>10,'variable is greater than 10',
ivar<25, ' variable is less than 25 ',
'No match found ')  

其中 ivar=25

这些选项的答案是什么

..大于 10 ..少于 25 ..找不到匹配项 ..错误:表达式无效

【问题讨论】:

  • 这是面试题吗?你认为答案应该是什么?只是猜测......
  • 在我看来应该大于 10,但既然都满足,那就有疑问了
  • 如何同时满足? 25 &lt; 25 不正确。

标签: decode informatica-powercenter


【解决方案1】:

我认为正确的答案是:变量小于 25 因为:

  1. Case Statements/Decode Function in Informatica

  2. DECODE

试着解释一下

  1. 第一个参数是假的 - 这意味着我们正在等待第一个假
  2. first_search 比 first_result 在 params 和 last - 默认值这就是我检查语法和参数编号的原因,没关系。比我看值 ivar=25
  3. 25

如果我记错了告诉我。

【讨论】:

    猜你喜欢
    • 2013-03-15
    • 1970-01-01
    • 1970-01-01
    • 2019-04-02
    • 2012-04-16
    • 1970-01-01
    • 2011-05-16
    • 2011-11-20
    • 2013-09-12
    相关资源
    最近更新 更多