R
RD
Hi all,
Trying to wrap my brain around how to query for recidivism.
I'm working with a complex database not of my design in a system that
has been in use for 5 years, or so.
I have one table that logs both program entries and exits with a
"status" of either Entry or Exit as well as the date of the
Entry/Exit. This table also has the client ID and a Program ID.
The request is to track the clients who transition out of an Emergency
Program into a Transitional Program or even out of Program completely
and then re-enter the Emergency Program.
I was hoping to be able to do it with a query, or nested queries, but
it looks like I might need to just grab a recordset and loop through
each record in code, holding a first Entry/Exit set in memory while
looking for subsequent Entry/Exit sets by Client ID.
Any thoughts?
Many thanks,
RD
Trying to wrap my brain around how to query for recidivism.
I'm working with a complex database not of my design in a system that
has been in use for 5 years, or so.
I have one table that logs both program entries and exits with a
"status" of either Entry or Exit as well as the date of the
Entry/Exit. This table also has the client ID and a Program ID.
The request is to track the clients who transition out of an Emergency
Program into a Transitional Program or even out of Program completely
and then re-enter the Emergency Program.
I was hoping to be able to do it with a query, or nested queries, but
it looks like I might need to just grab a recordset and loop through
each record in code, holding a first Entry/Exit set in memory while
looking for subsequent Entry/Exit sets by Client ID.
Any thoughts?
Many thanks,
RD