Skip to content
Advertisement

Handle Group by different way in postgres

This query getting result like below

enter image description here

But i want group by hour like

enter image description here

Advertisement

Answer

you can use case when hour to merge multi hours to time range then group it.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement