Timestream DAYNAME alternative to limit aggregation to weekdays

0

I am looking for an option to have aggregation over timeseries to be performed only for weekdays, like Monday, Tuesday and etc. I tried DAYNAME function but it doesn't seem to exist. Is there an alternative to that function or any other way to achieve what I am after?

Would be also interesting to find out how to get aggregation limited from 06:00 to 16:00 every day for example, but this might be a separate question.

hRed
feita há 2 anos277 visualizações
1 Resposta
1
Resposta aceita

The function day_of_week(<timestamp>) or the alias dow(<timestamp>) return the day of the week. These functions return an integer, the value ranges from 1 (Monday) to 7 (Sunday).

The function hour(<timestamp>) returns the hour of the day, the value ranges from 0 to 23.

AWS
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas