Hi Dieter,
This is from SQL server. I typed sql wrong while trying to remove some reference. It is actually
Update Staging.CDD_TodayCDD_CountryRisk
Set ABC_Risk =
Case When b.BRANCH_RISK_FACTOR = 'Undefined' Then a.ABC_Risk_wo_Override When b.BRANCH_RISK_FACTOR = 'Accepted' Then a.ABC_Risk_wo_Override When b.BRANCH_RISK_FACTOR Is NULL Then a.ABC_Risk_wo_Override Else Coalesce(b.BRANCH_RISK_FACTOR, a.ABC_Risk_wo_Override) End
From Staging.CDD_TodayCDD_CountryRisk a
Left Join dbo.CDD_ABC_Uplift b On b.REVIEW_ID = a.REVIEW_ID and b.COUNTRY_NAME = a.ABC_Country
Hi Dieter,
This is from SQL server. I typed sql wrong while trying to remove some reference. It is actually
Update Staging.CDD_TodayCDD_CountryRisk
Set ABC_Risk =
Case When b.BRANCH_RISK_FACTOR = 'Undefined' Then a.ABC_Risk_wo_Override
When b.BRANCH_RISK_FACTOR = 'Accepted' Then a.ABC_Risk_wo_Override
When b.BRANCH_RISK_FACTOR Is NULL Then a.ABC_Risk_wo_Override
Else Coalesce(b.BRANCH_RISK_FACTOR, a.ABC_Risk_wo_Override)
End
From Staging.CDD_TodayCDD_CountryRisk a
Left Join dbo.CDD_ABC_Uplift b On b.REVIEW_ID = a.REVIEW_ID
and b.COUNTRY_NAME = a.ABC_Country
a.ABC_country has null values.
Thanks