IanWaterman
Programmer
Currently building Insurance Reports using CR10 on Oracle 8
I am trying to relate some claims data to premium data. The only relationship between the Premium Transactions and the Calims transactiosn is the policy number, thus it is a many to many relationship.
I can build a subreport which will find any claims data for each policy and I can then relate this in the summary group of the policy for the premium data. I have been led to believe that I could use a SQL expression instead.
However, when I run my SQL wxpression it just brings back all Claims data and not just for a specific policy.
(Select Sum(ClaiM_amount) from GenClaim)
I can also group by policy or filter by policy, but I cannot seem to make the SQL Expression return the policy group amount when placed within the group footer of the main report where group is "GENPOLICY"."POLICY_KEY".
I have even tried
(Select Sum(ClaiM_amount) from GenClaim
where CLM_POLICY_CDE = "GENPOLICY"."POLICY_KEY")
I introduced the policy key using the table list in the SQL Exp editor, but this just resulted in a SQL error where "GENPOLICY"."POLICY_KEY" is an invalid identifier.
Can this be done or do I just go back to the slow but reliable Subreport.
Ian
I am trying to relate some claims data to premium data. The only relationship between the Premium Transactions and the Calims transactiosn is the policy number, thus it is a many to many relationship.
I can build a subreport which will find any claims data for each policy and I can then relate this in the summary group of the policy for the premium data. I have been led to believe that I could use a SQL expression instead.
However, when I run my SQL wxpression it just brings back all Claims data and not just for a specific policy.
(Select Sum(ClaiM_amount) from GenClaim)
I can also group by policy or filter by policy, but I cannot seem to make the SQL Expression return the policy group amount when placed within the group footer of the main report where group is "GENPOLICY"."POLICY_KEY".
I have even tried
(Select Sum(ClaiM_amount) from GenClaim
where CLM_POLICY_CDE = "GENPOLICY"."POLICY_KEY")
I introduced the policy key using the table list in the SQL Exp editor, but this just resulted in a SQL error where "GENPOLICY"."POLICY_KEY" is an invalid identifier.
Can this be done or do I just go back to the slow but reliable Subreport.
Ian