Write a sql query to add column's value , containing null values also in records. But the sum of the added columns must be numeric only. Output cannot be null. It can be achieve by two ways.
SELECT (COALESCE(Column1, 0) + COALESCE(Column2, 0)) as SUM FROM Table1
SELECT ( ISNULL(Column1,0) + ISNULL(Column2,0) )as SUM FROM Table1
0 Comment(s)