[英]Please help me fix this IF statement
I can't get this code to go through. 我无法通过这段代码。 What am I missing?
我错过了什么?
This is a new statement which is part of an internal database but I cannot get it to accept the code. 这是一个新的语句,它是内部数据库的一部分,但我不能让它接受代码。
SELECT "Human Resources - Assignment EIT Details"."Employment Attributes"."Employee Latest Start Date", "Assignment"."Incremental Date"
CASE
WHEN "Assignment"."Incremental Date" IS NULL THEN "Human Resources - Assignment EIT Details"."Employment Attributes"."Employee Latest Start Date"
ELSE "Assignment"."Incremental Date" END;
I expect the output to show the Incremental Date but if the field IS NULL then it needs to show the Employee Latest Start Date 我希望输出显示增量日期,但如果字段为空,则需要显示员工最新开始日期
The correct code was ; 正确的代码是;
CASE WHEN "Human Resources - Assignment EIT Details"."Assignment"."Incremental Date" IS NULL
THEN "Human Resources - Assignment EIT Details"."Employment Attributes"."Employee Latest Start Date"
ELSE "Human Resources - Assignment EIT Details"."Assignment"."Incremental Date"
END
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.