Вы можете попробовать ниже -
with data as (
select 1 X, 2 Y, 1 sno from dual
union
select null X, 2 Y, 2 sno from dual
union
select 1 X, null Y, 3 sno from dual
union
select null X, null Y, 4 sno from dual
)
select sno, X, Y, coalesce(X+Y,X,Y) from data
order by sno
+-----+--------+--------+-------------------+
| SNO | X | Y | COALESCE(X+Y,X,Y) |
+-----+--------+--------+-------------------+
| 1 | 1 | 2 | 3 |
| 2 | (null) | 2 | 2 |
| 3 | 1 | (null) | 1 |
| 4 | (null) | (null) | (null) |
+-----+--------+--------+-------------------+