Tratamiento de fechas:
Crear una tabla con una columna automática de tipo timestamp:
create table if not exists DATABASE.SCHEMA.mi_tabla
(
.
.
.
FECHA_ALTA TIMESTAMPNTZ DEFAULT CURRENT_TIMESTAMP()
);
SELECT CURRENT_TIMESTAMP()
SELECT date_trunc('DAY',CURRENT_TIMESTAMP())
SELECT CURRENT_TIMESTAMP(),dateadd('SECOND',86400,CURRENT_TIMESTAMP())
SELECT datediff('SECOND',CURRENT_TIMESTAMP(),dateadd('SECOND',86400,CURRENT_TIMESTAMP()))