Hi Sai,
"sp" in Oracle is only supported for DateTime, same in Teradata:
SELECT TO_CHAR(CURRENT_DATE,'yyyysp');
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
TO_CHAR(Date,'yyyysp')
-----------------------------------------------------------------
two thousand thirteen
BTEQ -- Enter your SQL request or BTEQ command:
SELECT CAST(TO_CHAR(CURRENT_DATE,'jSp') AS VARCHAR(100));
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
TO_CHAR(Date,'jSp')
---------------------------------------------------------------------
two million four hundred fifty-six thousand four hundred eighty-six
Of course you could do some int-to-date calculations to get it for numbers, too.
How many digits do you need?
Dieter
Dieter
Hi Sai,
"sp" in Oracle is only supported for DateTime, same in Teradata:
Of course you could do some int-to-date calculations to get it for numbers, too.
How many digits do you need?
Dieter
Dieter