S
Sydneyej
Hello!
I am a novice writer of Access Queries and I'm having trouble figuring
out how to do what I want with one query instead of three. Actually,
this will be easier to explain with the example. Okay, here are my
fields:
Patient ID
Delivery Type
Depression Score
Patient ID is a unique ID of four digits.
Delivery Type is either a 0 (c-section), 1 (vaginal) or 9 (missing).
Depression Score is a whole number between 0 and 30, or null.
I have about 2,000 records. I would like to write a query that spits
out the following:
Delivery Type Dep. Score 0-8 Dep. Score 9-13 Dep. Score
100 10
1 1,000
550 50
9 50
40 0
I can get it to do each range, one at a time (e.g. Count Patient ID,
Group By Delivery Type, Where Depression Score <9), but not all at
once. I'm sure there is a super easy way to make this work, but I'm
not sure how to ask the question. Any help would be greatly
appreciated!
Thank you!
Sydney
I am a novice writer of Access Queries and I'm having trouble figuring
out how to do what I want with one query instead of three. Actually,
this will be easier to explain with the example. Okay, here are my
fields:
Patient ID
Delivery Type
Depression Score
Patient ID is a unique ID of four digits.
Delivery Type is either a 0 (c-section), 1 (vaginal) or 9 (missing).
Depression Score is a whole number between 0 and 30, or null.
I have about 2,000 records. I would like to write a query that spits
out the following:
Delivery Type Dep. Score 0-8 Dep. Score 9-13 Dep. Score
0 200
100 10
1 1,000
550 50
9 50
40 0
I can get it to do each range, one at a time (e.g. Count Patient ID,
Group By Delivery Type, Where Depression Score <9), but not all at
once. I'm sure there is a super easy way to make this work, but I'm
not sure how to ask the question. Any help would be greatly
appreciated!
Thank you!
Sydney