Viewing 2 posts - 1 through 2 (of 2 total)
You would have to first update all the rows with null values to 0 using an update statement
update Mytablename set colA = 0 where colA is null
Then you should be...
February 28, 2008 at 10:57 am
#783364
This should work in SQL 2005
tbl_a
ID INT NOT NULL
col_a TEXT NULL
col_b TEXT NULL
UPDATE tbl_a
SET col_a = convert(varchar(max), col_a) + '. ' + convert(varchar(max), col_b),
col_b = NULL
WHERE
isnull(convert(varchar(max), col_b), '')...
February 12, 2008 at 12:04 pm
#777480