jakecolman
IS-IT--Management
I thought I knew how to do this but clearly I don't.
My table looks as follows:
DP_DEALID, DP_TYPE, DP_DATE, DP_POSITION
I need to select the DP_POSITION for all DP_DEALID and DP_TYPES with the max date <= a specified date. So for a given DP_DEALID and DP_TYPE I will get just one record - the one with most recent date on or before the specified date.
My report has groups for DP_DEALID and DP_TYPE. My group selection criteria is:
maximum({DP_DATE},{DP_TYPE}) <= CDATE('05-JAN-2006')
The report is still including all record, not just the one with the max date. What did I miss?
Thanks!
...Jake
My table looks as follows:
DP_DEALID, DP_TYPE, DP_DATE, DP_POSITION
I need to select the DP_POSITION for all DP_DEALID and DP_TYPES with the max date <= a specified date. So for a given DP_DEALID and DP_TYPE I will get just one record - the one with most recent date on or before the specified date.
My report has groups for DP_DEALID and DP_TYPE. My group selection criteria is:
maximum({DP_DATE},{DP_TYPE}) <= CDATE('05-JAN-2006')
The report is still including all record, not just the one with the max date. What did I miss?
Thanks!
...Jake