Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple SQL QUestion

Status
Not open for further replies.

united07

Programmer
Jun 1, 2004
2
AU
I have 2 columns in my table. 1. is 'Household' 2. is 'Household Members'. There are multiple members for each household. How do I find the average number of members per household.
 
Tou may try something like this:
SELECT Household, AVG('Household Members') As AverageMembers
FROM yourTable
GROUP BY Household

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top