Re: my employee listing
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Sun, 16 Jul 2006 19:13:25 -0400
Of course, that won't be a completely correct age: it will say people are
older than they are if they haven't already had their birthday.
Select DateDiff("yyyy", Date(), Birthday) - IIf(Format(Date(), "mmdd") <
Format(Birthday, "mmdd"), 1, 0) AS Age, Gender FROM CensusData
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Amy Blankenship" <Amy_nospam@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%233MepZRqGHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
First, I'd do something like this:
Select DateDiff("yyyy", Date(), Birthday) AS Age, Gender FROM CensusData
Save that query as qryAgeGender
To get your aggregation from that data, you can apply the concepts from
this video.
http://www.datapigtechnologies.com/flashfiles/crosstab.html
If you need more specifics on how to apply the concepts, post back.
HTH;
Amy
"rodchar" <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8E90DB64-6A86-4B84-A7D0-406D1982F9B9@xxxxxxxxxxxxxxxx
census info. for the State Dept. of H.R.
"Amy Blankenship" wrote:
What good does it do you to know the genders and birthdays if you don't
know
who the people are?
"rodchar" <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:67E50334-F864-44D9-A5FD-92CE4C3D54F0@xxxxxxxxxxxxxxxx
just gender and birthday
"Amy Blankenship" wrote:
What are your fields?
"rodchar" <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D4261834-7E59-4C49-884C-C3D9F91D8297@xxxxxxxxxxxxxxxx
hey all,
i have a table of employees and what i'd like to do is group by
male
and
female. but also would like a count of which employees fall in a
specific
age
range.
I know how to do the first grouping but how would i do the 2nd one?
thanks,
rodchar
.
- References:
- Re: my employee listing
- From: Amy Blankenship
- Re: my employee listing
- From: Amy Blankenship
- Re: my employee listing
- From: Amy Blankenship
- Re: my employee listing
- Prev by Date: Re: Query with Multiple IIF
- Next by Date: Re: Query for all recs Between 7/10 at 2:PM and 7/12 at 6 PM ???
- Previous by thread: Re: my employee listing
- Next by thread: How do I STOP access sorting my data?
- Index(es):
Relevant Pages
|
|