group by range

  • I have a list people with age:

    Name Age Gender

    John 12 M

    Sara 15 F

    Tom 16 M

    Tim 13 M

    Joshua 19 M

    I need to count the number of people who is between 10-14 and 15 to 21 and by gender

    How Can I do.

    Thanks,

    Jian

  • use a CASE statement to group the age ranges into two groups, then summarize on that. What have you tried so far?

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply