“DateTrenc Hour Snowflake” Respostas de código

Snowflake DateTrenc Mês

select to_date('2015-05-08T23:39:20.123-07:00') as "DATE1",
       date_trunc('YEAR', "DATE1") as "TRUNCATED TO YEAR",
       date_trunc('MONTH', "DATE1") as "TRUNCATED TO MONTH",
       date_trunc('DAY', "DATE1") as "TRUNCATED TO DAY";
Hambo

DateTrenc Hour Snowflake

select to_timestamp('2015-05-08T23:39:20.123-07:00') as "TIMESTAMP1",
       date_trunc('HOUR', "TIMESTAMP1") as "TRUNCATED TO HOUR",
       date_trunc('MINUTE', "TIMESTAMP1") as "TRUNCATED TO MINUTE",
       date_trunc('SECOND', "TIMESTAMP1") as "TRUNCATED TO SECOND";
Hambo

Respostas semelhantes a “DateTrenc Hour Snowflake”

Perguntas semelhantes a “DateTrenc Hour Snowflake”

Procure respostas de código populares por idioma

Procurar outros idiomas de código