Click here to Skip to main content
14,265,950 members
Rate this:
Please Sign up or sign in to vote.
See more:
how to sum multiple on multiple columns in sql serevr
Posted
Comments
gvprabu 22-May-13 4:01am
   
give some sample of your table and table structure... simply one line if u asked then how we will help u..?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

see example
col1,2,3 are numeric/int...
select col1 + col2 + col3 as colsum from tablename

Happy Coding!
:)
   
Comments
Aarti Meswania 22-May-13 3:42am
   
what are your table columns? give names
Aarti Meswania 22-May-13 3:50am
   
which columns you want to sum?
Maciej Los 22-May-13 4:31am
   
+5
Aarti Meswania 22-May-13 4:38am
   
Thank you! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100