Hi,
Try exceuting,
select
col1,
col2,
( (case when col1 IS NULL then 0 else 10 end ) + (case when col2 IS NULL then 0 else 1 end )) as weight
from tab1
Cheers,
Pp
Hi,
Try exceuting,
select
col1,
col2,
( (case when col1 IS NULL then 0 else 10 end ) + (case when col2 IS NULL then 0 else 1 end )) as weight
from tab1
Cheers,
Pp