katrina11
Technical User
- Apr 30, 2011
- 108
Hi Experts,
1. I need first to categorize patients by Age:
If memberAge in (21,22,23,24 ) then AgeCat=’Age 21-24’
If memberAge in (25,26,27,28,29) then AgeCat=’Age 25-29’ and so on
2. And group them by Age Category and Gender in order to get a count.
How can I implement these steps in a single query?
Could you please help me with it? Thank you!
Katrin
1. I need first to categorize patients by Age:
If memberAge in (21,22,23,24 ) then AgeCat=’Age 21-24’
If memberAge in (25,26,27,28,29) then AgeCat=’Age 25-29’ and so on
2. And group them by Age Category and Gender in order to get a count.
How can I implement these steps in a single query?
Could you please help me with it? Thank you!
Katrin