Yeah - though the arithmetic page is more what i'm looking for.
All the examples say things like "select 2 + 4" and I want to know if I can say, "select table1.value + table2.othervalue + table3.thirdvalue AS sum". I assume I can but the manual doesn't mention retrieving values and performing calculations on them, it just gives examples with explicit numeric values.
Also, I want to be able to add up all results - for instance, I do a query for all 'amount' where userID='32' - I want to get a sum of all the amount entries - add up the "amount" field from each row in the result set and return the total. There's a way to do this, right?