Hi all,
Can someone give me a few pointers to this problem? Objective: Display count of records in 3 different scenarios:
1. Finish Date > Deadline
2. Finish Date <= Deadline
3. Finish Date is NULL
In addition, these filters should be applied to narrow down the above:
- Report ID = "123456789"
The individual SQL statements are simple:
- select count(*) from MYTABLE where REPORT_ID = '123456789' /* total count */
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE > DEADLINE
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE <= DEADLINE
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE is NULL
But how do I display these 3 individual pieces of information in Crystal Report? I've tried using Groups - Specified Order but that doesn't work because it only allows you to compare against predefined dates and not another field.
Thanks very much, Excalibur
Can someone give me a few pointers to this problem? Objective: Display count of records in 3 different scenarios:
1. Finish Date > Deadline
2. Finish Date <= Deadline
3. Finish Date is NULL
In addition, these filters should be applied to narrow down the above:
- Report ID = "123456789"
The individual SQL statements are simple:
- select count(*) from MYTABLE where REPORT_ID = '123456789' /* total count */
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE > DEADLINE
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE <= DEADLINE
- select count(*) from MYTABLE where REPORT_ID = '123456789' and FINISH_DATE is NULL
But how do I display these 3 individual pieces of information in Crystal Report? I've tried using Groups - Specified Order but that doesn't work because it only allows you to compare against predefined dates and not another field.
Thanks very much, Excalibur