S
S
svet12017-06-05 05:28:58
PostgreSQL
svet1, 2017-06-05 05:28:58

How to get data in postgres, for multiple ranges of values?

I have a one-to-many table. There is a query that allows you to get data on how many times there were entries in 3 days. But for example, you also need to see the changes for the same period of time, but for yesterday and the day before yesterday, etc. That is, if we take the 15th number as a basis, then it is necessary that there are columns with the calculation of values ​​​​for 12-15, 11-14, 10-13

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question