I am using CR XI
I would like create a SQL Expression to get a minimum Legal Date that is greater than the Case Begin Date for each individual case. The report is grouped by Case Id.
Here is how the data currently shows;
(Group #1 - Case Id) Case Id - 1009699
Begin Date --- Legal Date
10-19-11 --- 6-4-12
10-19-11 --- 11-15-11
10-19-11 --- 3-6-09
(Group #1 - Case Id) Case Id - 1013499
Begin Date --- Legal Date
12-27-11 --- 2-29-12
12-27-11 --- 1-15-12
12-27-11 --- 12-29-11
What I would like to show:
(Group #1 - Case Id) Case Id - 1009699
Begin Date --- Legal Date --- SQL Expession
10-19-11 --- 6-4-12 ------ 11-15-11
10-19-11 --- 11-15-11 ------ 11-15-11
10-19-11 --- 3-6-09 ------- 11-15-11
(Group #1 - Case Id) Case Id - 1013499
Begin Date --- Legal Date --- SQL Expession
12-27-11 --- 2-29-12 ----- 12-29-11
12-27-11 --- 1-15-12 ----- 12-29-11
12-27-11 --- 12-29-11 ----- 12-29-11
Is it possible to use a SQL Expression to accomplish this?
I would like create a SQL Expression to get a minimum Legal Date that is greater than the Case Begin Date for each individual case. The report is grouped by Case Id.
Here is how the data currently shows;
(Group #1 - Case Id) Case Id - 1009699
Begin Date --- Legal Date
10-19-11 --- 6-4-12
10-19-11 --- 11-15-11
10-19-11 --- 3-6-09
(Group #1 - Case Id) Case Id - 1013499
Begin Date --- Legal Date
12-27-11 --- 2-29-12
12-27-11 --- 1-15-12
12-27-11 --- 12-29-11
What I would like to show:
(Group #1 - Case Id) Case Id - 1009699
Begin Date --- Legal Date --- SQL Expession
10-19-11 --- 6-4-12 ------ 11-15-11
10-19-11 --- 11-15-11 ------ 11-15-11
10-19-11 --- 3-6-09 ------- 11-15-11
(Group #1 - Case Id) Case Id - 1013499
Begin Date --- Legal Date --- SQL Expession
12-27-11 --- 2-29-12 ----- 12-29-11
12-27-11 --- 1-15-12 ----- 12-29-11
12-27-11 --- 12-29-11 ----- 12-29-11
Is it possible to use a SQL Expression to accomplish this?