私はこれらのコードを持っています:
select case
when exists (select 1
from table1
where id=608071)
then column1
else 0
end as abc
from table1 where id=608071;
と
select decode(count(column1), 0, column1) abc
from (select column1
from table1
where id=608071) group by column1;
そして、それらのどれも私にcolumn1、0、エラーを返しません。それは私にヌル、すなわち何も与えません。行は返されません。特定のIDが存在しない場合は0を取得する必要があります。ここの何が問題になっていますか?