Insert into EWT_CLM_COV_TYPE_DIM
select distinct b.C_CODE1,
a.CLM_COV_TYPE_CD,
a.LEG_CLM_COV_TYPE_CD
from
KGT_SDM_CLAIM_COV_NG a,
CODE_RELATIONS b,
EWT_CLM_COV_TYPE_DIM c
where a.CCN_NG_CLAIM_COV_CD = b.C_CODE2
and b.C_CATEGORY1 = 881
and b.C_CATEGORY2 = 20
and b.C_CODE1 <> c. C_CODE1
and a.CLM_COV_TYPE_CD <> c.CLM_COV_TYPE_CD
and a.LEG_CLM_COV_TYPE_CD <> c.LEG_CLM_COV_TYPE_CD
|