I have three tables:
INSURED (basic insured info):
POLICY#
LAST
FIRST
EXP_DATE
EFF_DATE
CLAIM (claim info for each claim files by the insured):
CLAIM#
POLICY#
TYPE_LOSS
CAUSE
DATE_LOSS
DATE_REPORTED
CATEGORY
DRIVER
HIST_CLAIM (every change the claim goes through):
CLAIM#
DATE_CHANGED
RESERVES_START
PAID_PMT
TOT_INCURRED
RECOVERIES
LOSS_RESERVES
LOSS_RECOV
I need to create a record set that has the INSURED and CLAIM data and the latest change in HIST_CLAIM.
For example:
A date range of 01-JAN-01 through 12-DEC-03 is entered. Claim #10 has several records in the HIST_CLAIM file that file within that date range. However, I only want the last HIST_CLAIM record within that date range (using DATE_CHANGED to get the records).
Thread759-672989 helped a lot, except that it only dealt with one table.
INSURED (basic insured info):
POLICY#
LAST
FIRST
EXP_DATE
EFF_DATE
CLAIM (claim info for each claim files by the insured):
CLAIM#
POLICY#
TYPE_LOSS
CAUSE
DATE_LOSS
DATE_REPORTED
CATEGORY
DRIVER
HIST_CLAIM (every change the claim goes through):
CLAIM#
DATE_CHANGED
RESERVES_START
PAID_PMT
TOT_INCURRED
RECOVERIES
LOSS_RESERVES
LOSS_RECOV
I need to create a record set that has the INSURED and CLAIM data and the latest change in HIST_CLAIM.
For example:
A date range of 01-JAN-01 through 12-DEC-03 is entered. Claim #10 has several records in the HIST_CLAIM file that file within that date range. However, I only want the last HIST_CLAIM record within that date range (using DATE_CHANGED to get the records).
Thread759-672989 helped a lot, except that it only dealt with one table.