【发布时间】:2022-01-09 14:50:45
【问题描述】:
我有一个需要实现的关键逻辑,但不知道如何在 Informatica 中的表达式级别编写 if logic
我的逻辑:
if (empid =='SBCS'):
then
empcd = v_employee_code_number
elif empcal <> depcal and empid in ('SSC','HSC'):
then
empcd = (emp_sal/avgsal) * empad
elif empcal <> depcal and empid not in ('SSC','HSC'):
then
empcd = emp_del
else:
empcd = emp_dev
我需要在 Informatica 甚至 SQL 查询中编写表达式级别的上述逻辑?
我尝试过以下逻辑。它在表达式中抛出语法错误
iif( empid =='SBCS',v_employee_code_number,iif(empcal <> depcal and empid in ('SSC','HSC')),(emp_sal/avgsal) * empad, empcal <> depcal and empid not in ('SSC','HSC'), emp_del,emp_dev)
上面需要用SQL写,但不知道怎么写
【问题讨论】:
-
查看 SQL 参考指南。 "==" 不是 oracle 中的有效语法。
标签: sql oracle expression informatica