0
select 
CASE when length(attr2) > 0
        then attr2
        ELSE '-'
        END AS attr2
from vdata

desc vdata

attr2 nvarchar(30)

What is the best way to fix this?

1 Answers1

0
select coalesce(attr2, to_nchar('-')) from vdata
Sanders the Softwarer
  • 2,478
  • 1
  • 13
  • 28