Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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

Happy Coding!
:)
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900