Table: Times
CaseNum (Number)
AnaestheticType (String)
StartTime (Time)
Sample Data:
CaseNum AnaestheticType StartTime
1 GA 08:30
1 LA 09:30
2 GA 10:00
I want to group by the Time Period depending on the first StartTime for the case. The 3 periods are:
00:00 to 09:00
09:00 to 18:00
18:00 to 00:00
The result I get is:
Group 00:00 to 09:00
CaseNum AnaestheticType StartTime
1 GA 08:30
Group 09:00 to 18:00
CaseNum AnaestheticType StartTime
1 LA 09:30
2 GA 10:00
Case 1 should not appear in the 09:00 to 18:00 group as the case started in the 00:00 to 09:00 period.
The result I want is:
Group 00:00 to 09:00
CaseNum AnaestheticType StartTime
1 GA 08:30
Group 09:00 to 18:00
CaseNum AnaestheticType StartTime
2 GA 10:00
The Group uses a SPECIFIED ORDER with {Times.StartTime} IS BETWEEN <time> and <time>
I have tried suppressing records with {Times.CaseNum} = Previous{Times.CaseNum} which works but only if the two times for the case are in the same period.
I can’t figure out how to select only the record with the earliest time.
I use Crystal Reports 7 and the database is Btrieve tables.
Any suggestions will be helpful.
CaseNum (Number)
AnaestheticType (String)
StartTime (Time)
Sample Data:
CaseNum AnaestheticType StartTime
1 GA 08:30
1 LA 09:30
2 GA 10:00
I want to group by the Time Period depending on the first StartTime for the case. The 3 periods are:
00:00 to 09:00
09:00 to 18:00
18:00 to 00:00
The result I get is:
Group 00:00 to 09:00
CaseNum AnaestheticType StartTime
1 GA 08:30
Group 09:00 to 18:00
CaseNum AnaestheticType StartTime
1 LA 09:30
2 GA 10:00
Case 1 should not appear in the 09:00 to 18:00 group as the case started in the 00:00 to 09:00 period.
The result I want is:
Group 00:00 to 09:00
CaseNum AnaestheticType StartTime
1 GA 08:30
Group 09:00 to 18:00
CaseNum AnaestheticType StartTime
2 GA 10:00
The Group uses a SPECIFIED ORDER with {Times.StartTime} IS BETWEEN <time> and <time>
I have tried suppressing records with {Times.CaseNum} = Previous{Times.CaseNum} which works but only if the two times for the case are in the same period.
I can’t figure out how to select only the record with the earliest time.
I use Crystal Reports 7 and the database is Btrieve tables.
Any suggestions will be helpful.