D
D
des1roer2014-12-12 07:37:42
PostgreSQL
des1roer, 2014-12-12 07:37:42

How to query average by month, day and hour in PostgreSQL?

In general, the task is generally tricky and I don’t even know how to do it. want to get data from postgres type
id | value 1 for n hour | value 1 in n+1 hours | ... | sum of value 1 per shift | average per value change 2 | sum of value 1 per day | daily average values ​​2 | sum of value 1 per month | monthly average values ​​2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Krasnodemsky, 2014-12-12
@Prognosticator

show the schema of the table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question