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

CASE STATEMENT - forum topic by MBR

$
0
0

Hi,
i want to conver the below 'if' statement into 'CASE' statement can any one help me on this please.
IF (PLNV.LMV_BUS_TYPE_NEW) = ('COR')
    if LM_PASS_THRU_EXPRESS_IND = '3'
        use LV_LX_FUND_PRIN_BAL
    else if LV_LX_FUND_PRIN_BAL > 0
        use LV_LX_FUND_PRIN_BAL – LV_LX_PROJ_PRIN_REDUC – LV_LX_PRIN_REDUCT      
    else                                      
        use [LM_AMT_LOAN – LV_LX_PROJ_PRIN_REDUC – LV_LX_PRIN_REDUCT ]
ELSE IF PLNV.LMV_BUS_TYPE_NEW = ('WHS')
    use AD_CURR_PRIN_BAL
ELSE (PLNV.LMV_BUS_TYPE_NEW) NOT IN ('COR','WHS')
    use LM_AMT_LOAN
Appreciates quick reply. Thanks
Regards
MBR

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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