-- MS-SQL
SELECT CAST(GETDATE() AS DATE ) AS DATE_VAL
, CAST(CAST(GETDATE() AS DATE ) AS DATETIME ) AS DATETIME_VAL
, CAST(CAST(CAST(GETDATE() AS DATE ) AS DATETIME ) AS TIMESTAMP) AS TIMESTAMP_VAL
-- ORACLE
SELECT SYSDATE AS DATE_VAL
, TO_TIMESTAMP(SYSDATE) AS TIMESTAMP_VAL
FROM DUAL