Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Need logic to build in BODI, for a SQL in Oracle

$
0
0

Hi Experts The Below is the SQL Oracle, need to build in BODI CASE       WHEN SUBSTR(xxxxxxx.LINE_CD ,1 ,2) IN ('BI','BN') THEN (xxxxx.PMT_DUE_DTE)-14       ELSE CASE       WHEN EXTRACT( DAY FROM xxxxx.NXT_PMT_DUE_DTE- NUMTODSINTERVAL( EXTRACT( DAY FROM xxxxx.PMT_DUE_DTE), 'DAY' ) + INTERVAL '1' DAY + NUMTOYMINTERVAL( -1, 'MONTH' ) + INTERVAL '1' MONTH - INTERVAL '1' DAY ) < EXTRACT( DAY FROM xxxx.PMT_DUE_DTE) THEN xxxxxxx.PMT_DUE_DTE- NUMTODSINTERVAL( EXTRACT( DAY FROM xxxxx.PMT_DUE_DTE), 'DAY' ) + INTERVAL '1' DAY + NUMTOYMINTERVAL( -1, 'MONTH' ) + INTERVAL '1' MONTH - INTERVAL '1' DAY ELSE xxxxxxxx.PMT_DUE_DTE+ NUMTOYMINTERVAL( -1, 'MONTH' ) END       END AS LAST_FULL_PAYMENT Please let me know Thanks Madhu


Viewing all articles
Browse latest Browse all 4013

Trending Articles