sql server mseq:
I have two simple questions - well simple for the experts
anyway - but I am struggling with them.
1. I need to do the following: I have two fields:
claddr1 and claddr2. If claddr2 is not null, I need to
include it with claddr1 with a <CR><LF> in between.
Seems simple enough but I have tried many things and
nothing has worked. The latest thing I have tried is:
select claddr1 + IIf(ISNULL(claddr2), '', ''<CR><LR>' +
claddr2) from client
I was using a case statement, which also didn't work but
someone told me to try IIf. Any ideas?
2. The other thing I need to do is break city, state and
zip from one field into three fields.
Thanks in advance.