So let’s say I’ve got a column named cash in my database. One user got 1000 in it and another got 150 in it. How do I put all these together? So I can show like how much cash all users got?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean you just want to sum all the results for the column?
? If you want to sum the cash by user ID or something similar, you’ll need a GROUP BY clause. See the MySQL docs for more information.