Re: Help with SQL statement

From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 04/29/04


Date: Thu, 29 Apr 2004 09:52:13 -0400

Ben wrote:
>> Database Type and Version
> Im Using Access 2000.
>
>> A few rows of relevant data inside of tblUsers
> ---------------------------
> ID |Gender |Base |Age |
> ---------------------------
>
> ID: autonumber (int)
> Gender: Male or Female (text)
> Base: list of the 13 bases (text)
> Age: Number between 9 and 18 (int)
>
Where are the rows of data?
Never mind, I think (hope) I have the idea.

You will need to combine the results of two queries:
To get the gender portion broken out, use the Access Crosstab Query Wizard
to generate the sql for you..

The age breakdown can be done by a grouping query.

Then join these two queries to get the final result.

Play around with it for awhile. If you get stuck, get back to us.

Bob Barrows

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Relevant Pages

  • Re: Running a Perl script from another Perl script
    ... > 1/ parser.pl which parses a text file and stuffs the relevant data into a ... > mySQL DB - works fine no probs there ... You should rewrite parser.pl so that it implements a subroutine (better ... (being sure to follow the guidelines for that newsgroup), ...
    (comp.lang.perl)
  • Re: David Wright vs. A-Rod
    ... Chris ® wrote: ... someone in the newsgroup find the relevant data so we can definitively ...
    (alt.sports.baseball.ny-mets)