chuchuchui
Technical User
I'm using CR8.5, IBM Universe, and ODBC. I am trying to total the premium which is located in two different tables. There are three tables in this report. The POLICIES table which links to HO_COVERAGES via POLICIES_ID and the HO_COVERAGES_ADDLCOV which is linked via HO_COVERAGES_ID. I would like the POLICIES_ID in the same row as the premium total ie:
POLICIES_ID | Total Premium
------------|--------------
45812 | 456.32
98473 | 566.21
The HO_COVERAGES tables contains one portion of the premium under the heading BASICPREMIUM which only shows up one time for each policy. In the HO_COVERAGES_ID table I need to total ADDLPREMIUM which shows up mutiple time for each HO_COVERAGES_ID and I need this to be added to BASICPREMIUM. I cannot figure out how to get these to add together in a column that puts the total in the same row as the policy id.
POLICIES_ID | Total Premium
------------|--------------
45812 | 456.32
98473 | 566.21
The HO_COVERAGES tables contains one portion of the premium under the heading BASICPREMIUM which only shows up one time for each policy. In the HO_COVERAGES_ID table I need to total ADDLPREMIUM which shows up mutiple time for each HO_COVERAGES_ID and I need this to be added to BASICPREMIUM. I cannot figure out how to get these to add together in a column that puts the total in the same row as the policy id.