case when a.字段!=null && b.字段!=null then '好蛋疼的问题' then ... else ... end &&是与操作
你确定你哪个是oracle的?case when a.字段 is not null and b.字段 is not null then 'a' else 'b' end 这样肯定是好用的。
不能写 !=null需要写为:is not null
找本oracle pl/sql看看吧