Below query helps you get the amount in words and also in camel case
SELECT INITCAP(TO_CHAR(TO_DATE(ROUND(AMOUNT),'J'),'JSP')) AS AMOUNT_WORDS_CAMEL_CASE FROM DH_EXPLORATION;
Below screenshot is self explanatory,
In the query mentioned, TO_DATE is used to get the amount in words and INITCAP is used to get the amount in words as camel case.
Learnings : From GIB
SELECT INITCAP(TO_CHAR(TO_DATE(ROUND(AMOUNT),'J'),'JSP')) AS AMOUNT_WORDS_CAMEL_CASE FROM DH_EXPLORATION;
Below screenshot is self explanatory,
In the query mentioned, TO_DATE is used to get the amount in words and INITCAP is used to get the amount in words as camel case.
Learnings : From GIB
This comment has been removed by the author.
ReplyDelete