Informatica 中的解码函数
谁能帮我在 Informatica 中为下面的 case 语句编写一个解码函数?
CASE WHEN Employee in ('210','220','230') and Score like '7%' THEN concat(SUBSTRING(Employee,1,2),'2')
WHEN Employee in ('210','220','230') and Score not like '7%' THEN concat(SUBSTRING(Employee,1,2),'1')
ELSE Employee END as New_Employee
谢谢!!
Can anyone please help me to write a decode function in Informatica for the below case statement?
CASE WHEN Employee in ('210','220','230') and Score like '7%' THEN concat(SUBSTRING(Employee,1,2),'2')
WHEN Employee in ('210','220','230') and Score not like '7%' THEN concat(SUBSTRING(Employee,1,2),'1')
ELSE Employee END as New_Employee
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用解码来测试多个条件,例如
CASE WHEN
。它的工作原理与情况完全相同。因此,它将检查第一个条件是否为真,如果是,它将退出,否则检查第二个,如果为真,它将退出,依此类推......
You can use decode to test out multiple conditions like
CASE WHEN
. It works exacly like case when.So, it will check if first condition is true, if yes it will exit else check second, if true, it will exit and so on ...