INT_TO_DATE_UDF
Definition
UDF that reproduces Teradata's NUMERIC-TO-DATE functionality
PUBLIC.INT_TO_DATE_UDF(NUMERIC_EXPRESSION INTEGER)
Parameters
NUMERIC_EXPRESSION
INTEGER
A value that represents a DATE Type
Returns
Input number converted into a date data type.
Example
Input:
SELECT * FROM table1
WHERE date_column > 1011219
Output:
SELECT
* FROM
table1
WHERE date_column > PUBLIC.INT_TO_DATE_UDF( 1011219);
Last updated