Hello,
I am using CR10 and I am trying to create a report that shows Case ID with the Solution of the case.
{solution_table.CASE_ID}
{solution_table.SOLUTION_DESC}
(solution_table.ROW_LASTMANT_DTTM}
The problem is that one case can have more than one Solution and I am getting multiple returns for the same case.
Here is what I am getting:
Case ID Resolution Date
111 res1 2006/10/22
123 res2 2006/10/23
123 res3 2006/10/24
126 res4 2006/10/29
On Case ID "123" there are 2 solutions however I am only interested in the latest one (Oct 24th)
Here is what my output should look like
Case ID Resolution Date
111 res1 2006/10/22
123 res3 2006/10/24
126 res4 2006/10/29
I tried adding the following SQL expression (%Maxdate)
(select max(solution_table.ROW_LASTMANT_DTTM) from soluton_table
where
solution_table.CASE_ID = solution_table.CASE_ID)
and I added this to the record selection area
{solution_table.ROW_LASTMANT_DTTM}=(%Maxdate)
This actually removed everything from my report so I am not sure what my next step should be.
I have not performed any grouping in this report
Any help would be appreciated.
Thank you
R
I am using CR10 and I am trying to create a report that shows Case ID with the Solution of the case.
{solution_table.CASE_ID}
{solution_table.SOLUTION_DESC}
(solution_table.ROW_LASTMANT_DTTM}
The problem is that one case can have more than one Solution and I am getting multiple returns for the same case.
Here is what I am getting:
Case ID Resolution Date
111 res1 2006/10/22
123 res2 2006/10/23
123 res3 2006/10/24
126 res4 2006/10/29
On Case ID "123" there are 2 solutions however I am only interested in the latest one (Oct 24th)
Here is what my output should look like
Case ID Resolution Date
111 res1 2006/10/22
123 res3 2006/10/24
126 res4 2006/10/29
I tried adding the following SQL expression (%Maxdate)
(select max(solution_table.ROW_LASTMANT_DTTM) from soluton_table
where
solution_table.CASE_ID = solution_table.CASE_ID)
and I added this to the record selection area
{solution_table.ROW_LASTMANT_DTTM}=(%Maxdate)
This actually removed everything from my report so I am not sure what my next step should be.
I have not performed any grouping in this report
Any help would be appreciated.
Thank you
R