Hrs1 Hrs2 10 12 8 10 15 7
sum(sum(Hrs1),sum(Hrs2)) as Total
select hrs1 + hrs2 as totalhrs from tableName
--for summary, this will give single row as answer. select sum(hrs1 + hrs2) as totalhrs from tableName
try this...:)
SELECT Tot = ISNULL(Value1, 0) + ISNULL(Value2, 0) FROM Table
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)