我有一个关于 Oracle SQL 案例语句的问题。
在 where 条件下,我想应用以下条件。如果salary_date 为空,则 Effective_date 应大于 2016 年 1 月 1 日
我试过了
case when salary_date is null then
trunc(effective_date) >= '01-JAN-2016' else
null end
然而以上导致
ORA-00933: SQL 命令未正确结束
我该如何解决这个问题?