select status_a,status_b from test
オラクルのデコード関数 a を使用して以下の値をデコードする方法status_a
、status_b
および status_a または status_b の値のいずれかが null の場合。
if status_a='Y' and status_b='Y' then 'Y'
if status_a='Y' and status_b='N' then 'N'
if status_a='N' and status_b='Y' then 'N'
if status_a='N' and status_b='N' then 'N'
よろしく、
チャトゥハラ