CodingForums.com
>
:: Server side development
>
PHP
> Counting Numbers in Column
PDA
View Full Version :
Counting Numbers in Column
adrian5
09-14-2005, 05:14 PM
OK. Say i have three columns. ID, NAME, AGE. I want to count all the ages in the AGE column and add them up. How?
Thanks :thumbsup:
NancyJ
09-14-2005, 05:19 PM
SELECT SUM(Age) as sumofages, COUNT(age) as numofages FROM table
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.