/ 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
CASE WHEN REGEXP_LIKE(MASTER.LOANNO,'[^[:digit:]]') THEN NULL ELSE TO_NUMBER(MASTER.LOANNO) END AS ACCT_NBR,
You need to login to post a comment.
