summing two colums total in mysql
Posted
by JPro
on Stack Overflow
See other posts from Stack Overflow
or by JPro
Published on 2010-05-26T15:22:19Z
Indexed on
2010/05/26
15:31 UTC
Read the original article
Hit count: 164
I want a resultset for this table :
ID Number_of_posts Number_of_user
1 100 21
2 23 34
as
ID Number_of_posts Number_of_user Number_of_posts_AND_Number_of_user
1 100 21 178
2 23 34 178
-----------------------------------------------
123 55
Is it possible to get the sum of two colums as another column/ as output in mysql?
© Stack Overflow or respective owner