oanion
IS-IT--Management
- Jun 18, 2004
- 55
I'm using Crystal Reports XI with SQL Server 2000. I have the following scenario. If a patient has a discharge date of 03/15/2009, I only want to choose records for the patient for only the 1st service date AFTER the discharge date. For instance a patient has the following records:
DISCHARGE DATE SERVICE DATE SERVICE
03/15/2009 03/25/2009 Massage Therapy
03/15/2009 03/25/2009 Chiropratic Therapy
03/15/2009 03/27/2009 Blood Work
The first service date after the discharge date is the 25th,
therefore, the formula should only return the 1st two records for the patient.
By the way, I'm grouping on the patient ID, which makes the output look as I've shown above.
DISCHARGE DATE SERVICE DATE SERVICE
03/15/2009 03/25/2009 Massage Therapy
03/15/2009 03/25/2009 Chiropratic Therapy
03/15/2009 03/27/2009 Blood Work
The first service date after the discharge date is the 25th,
therefore, the formula should only return the 1st two records for the patient.
By the way, I'm grouping on the patient ID, which makes the output look as I've shown above.