Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Update statement with left outer join in from clause. - response (2) by Harpreet Singh

$
0
0

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
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>