On Mon, 2003-01-13 at 14:11, Stevens, Ryan wrote:
> I understand the SQL statement in MySQL to be 
> "SELECT sum(column name) FROM table;" but I would like to get a 
> SUM of multiple columns.  Is this possible??

Yes, you may use:

SELECT sum(c1+c2) FROM table;

or even:

SELECT sum(table1.v + table2.v) FROM table1,table2 
[WHERE ....]

Don't know if this was what you're looking for...

ds


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to