How to sum columns in SQL Server? -
i trying create column total value of column a,b,c,d,e.
select,[tvincome] ,[xincome] b ,[zincome] c ,[dincome] d ,[oincome] e sum(a,b,c,d,e) total
the error when doing above sum :"the sum function requires 1 argument(s)."
the total above not work. also, if include the proper names, xincome , rest,it still not work. how do it?
sum() adds each value in column, give single value + adds each value in 2 columns give column
it sounds after a + b + c + d + e total, or possibly sum(a + b + c + d + e) total if after 1 value
Comments
Post a Comment