![]() |
adding field from all rows together
how do i add a certain field together for all columns? for instance, on 'user' i have a field called 'donations' which stores how much money a user has donated. how do i add all users' donations together?
|
Here's the query:
Code:
SELECT SUM(donations) AS total FROM user; |
thanks
|
All times are GMT. The time now is 09:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|