Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 4th, 2004, 09:08 PM
ironchef ironchef is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Cleveland
Posts: 112 ironchef User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 14 m 34 sec
Reputation Power: 7
age query - advanced

I am having a problem with age and date ranges.
I need to create a query that shows the total number of volunteers that are within the following age ranges:

under 15
15-19
20-24
25-34
35-44
45-54
55-64
65-74
75-84
85-94

I currently have a table that has the min and max for the age ranges and the volunteer table has the birthdate - the age is calculated from the birthday when entered in the volunteer form. I am stuck on how to show the number of volunteers within each range when a date range is entered. It seems to work without the date range but once the date range is set as a criteria it doesn't work right.

The output should look like this:

Age Range   |   Total #
under 15   |     5
15-19   |     10
20-24   |     15
25-34   |     25
35-44   |     25
45-54   |     25
55-64   |     20
65-74   |     20
75-84   |     10
85-94   |     5

Overall Total: 160

Thanks in advance!

Last edited by ironchef : January 4th, 2004 at 11:03 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > age demographics


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT