Note that there are some explanatory texts on larger screens.

plurals
  1. POAverage aggregation on temporal DB based on measurment with 10-minute intervals in PostgreSQL
    primarykey
    data
    text
    <p>I have a temporal database and I want to perform the temporal aggregation via average function on time series data by using data in time sequence of following:</p> <pre><code>Hourly average of HH= (HH-1):51, HH:01, HH:11, HH:21, HH:31, HH:41. </code></pre> <p>Moreover, aforementioned values are instantaneous values. </p> <p>Sample data:</p> <pre><code> ambtemp ddate_ttime 1 -1.42 2007-09-28 23:39:09 2 -1.24 2007-09-28 23:41:09 3 -1.28 2007-09-28 23:43:09 4 -1.28 2007-09-28 23:45:09 5 -1.24 2007-09-28 23:47:09 6 -1.42 2007-09-28 23:49:09 7 -1.68 2007-09-28 23:51:09 8 -1.76 2007-09-28 23:53:09 9 -1.96 2007-09-28 23:55:09 10 -2.02 2007-09-28 23:57:09 11 -1.92 2007-09-28 23:59:09 12 -1.64 2007-09-29 00:01:09 13 -1.76 2007-09-29 00:03:09 14 -1.83 2007-09-29 00:05:09 15 -1.86 2007-09-29 00:07:09 16 -1.94 2007-09-29 00:09:09 17 -1.87 2007-09-29 00:11:09 18 -1.87 2007-09-29 00:13:09 19 -1.80 2007-09-29 00:15:09 20 -1.64 2007-09-29 00:17:09 21 -1.60 2007-09-29 00:19:09 22 -1.90 2007-09-29 00:21:09 23 -2.08 2007-09-29 00:23:09 24 -1.94 2007-09-29 00:25:09 25 -2.12 2007-09-29 00:27:09 26 -1.87 2007-09-29 00:29:09 27 -2.18 2007-09-29 00:31:09 28 -1.98 2007-09-29 00:33:09 29 -1.73 2007-09-29 00:35:09 30 -1.84 2007-09-29 00:37:09 31 -2.04 2007-09-29 00:39:09 32 -1.86 2007-09-29 00:41:09 33 -1.94 2007-09-29 00:43:09 34 -1.77 2007-09-29 00:45:09 </code></pre> <p>And Expected results:</p> <pre><code>Hourly mean for 0:00 = average of values of (23:51, 0:01, 0:11, 0:21, 0:31, 0:41) </code></pre> <p>Hourly mean 0:00 = (-1.68+-1.64+-1.87+-1.90+-2.18+-1.86)/6</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload