1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[SQL] how to group by every 6 hours in SQL?

Discussão em 'Outras Linguagens' iniciado por Stack, Setembro 14, 2021.

  1. Stack

    Stack Membro Participativo

    i tried to search, but couldn't find anything. but i'm using postgresql, but i want to group by every 6 hours. so something similar to

    date_trunc('hour', start_date)

    but every 6 hours.

    Continue reading...

Compartilhe esta Página