T
tlyczko
Hello,
I hope someone may help shed light on setting up this query.
I have two tables:
Incidents, with fields IncidentID (PK), IncidentDate, other fields
describing each incident
IncidentsConsumers, 1-M table with fields ConsumerID (PK), IncidentID
(FK)
I'm trying to figure out a good way to get how many consumers have 9 or
more incidents during any given period of time, per quarter.
I need to have a display like so for example with how many consumers
have 9+ incidents:
Current Quarter Previous Quarter
2 consumers 0 consumer
I can readily find which individual consumers have what counts of
incidents per quarter with a crosstab query, but how do I go one step
further and just get the COUNT of consumers with number of incidents >
8??
I'll keep working at it, I have some ideas that I can work with and
kludge up something but I was wondering if there is some query solution
that I don't know about.
Thank you, Tom
I hope someone may help shed light on setting up this query.
I have two tables:
Incidents, with fields IncidentID (PK), IncidentDate, other fields
describing each incident
IncidentsConsumers, 1-M table with fields ConsumerID (PK), IncidentID
(FK)
I'm trying to figure out a good way to get how many consumers have 9 or
more incidents during any given period of time, per quarter.
I need to have a display like so for example with how many consumers
have 9+ incidents:
Current Quarter Previous Quarter
2 consumers 0 consumer
I can readily find which individual consumers have what counts of
incidents per quarter with a crosstab query, but how do I go one step
further and just get the COUNT of consumers with number of incidents >
8??
I'll keep working at it, I have some ideas that I can work with and
kludge up something but I was wondering if there is some query solution
that I don't know about.
Thank you, Tom