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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -