/ Published in: SQL
This will take the alpha numeric loan number field and converts it into numeric loan number. If there are any loan numbers with alphabet then it is converted as NULL (basically alpha numeric loan numbers are ignored)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CASE WHEN REGEXP_LIKE(MASTER.LOANNO,'[^[:digit:]]') THEN NULL ELSE TO_NUMBER(MASTER.LOANNO) END AS ACCT_NBR,