B
Ben
I need to make a report for my website that lists these things
Base,
Total Number of Participants for that base,
Total number of Male Participants for that base,
Total number of female Participants for that base,
and the ages of the users (9-18).
EX:
-----------------------------------------------
Base |Total | Male | Female | Age/Number |
-----------------------------------------------
Cleveland | 20 | 10 | 10 | 9/1 |
| | | |10/2 |
-----------------------------------------------
So far my SQL statement looks like this:
strSQL = "SELECT base, count(gender) as totalMale WHERE gender = male,
count(gender) as totalFemale WHERE gender = female, count(base) as
totalParticipants FROM tblUsers WHERE admin = 0"
As you can probably tell it's not working, I don't think that this is
the right way to get the information that I am needing. Is there a different
way to get this information? Thanks!
Base,
Total Number of Participants for that base,
Total number of Male Participants for that base,
Total number of female Participants for that base,
and the ages of the users (9-18).
EX:
-----------------------------------------------
Base |Total | Male | Female | Age/Number |
-----------------------------------------------
Cleveland | 20 | 10 | 10 | 9/1 |
| | | |10/2 |
-----------------------------------------------
So far my SQL statement looks like this:
strSQL = "SELECT base, count(gender) as totalMale WHERE gender = male,
count(gender) as totalFemale WHERE gender = female, count(base) as
totalParticipants FROM tblUsers WHERE admin = 0"
As you can probably tell it's not working, I don't think that this is
the right way to get the information that I am needing. Is there a different
way to get this information? Thanks!