I have a table with the structure of something like this :
Username Varchar 255
Price Decimal 10,2
I want to use a select query to retrieve the total of all the price
fields for a specific user.
I tried:
"Select sum(price) as total from orders where username = 'XXX'"
Which works in other Databases I've used, but MySQL belches the query
back at me and tells me that it doesn't work.
How do I do this?