Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how to do this?
how to do this
select (CASE WHEN ((field1 IS NOT NULL) OR (field2 IS NOT NULL)) THENISNULL(field1 ,'') + ', ' +
ISNULL(field2,'') ELSE field3 END) AS xxxx from table;
First part this?
If(Len(Trim(field1))=0 or Len(Trim(field2))=0, IsNull(field1),' ')
we should concatenate the field1 and field 2
but there is no concatenation happened
Will you able to explain Business?
Something like this?
...IF (IsNull(field1) and IsNull(field2), field3,
field1 & ', ' & field2) AS xxxx