Skip to main content
. 2015 Dec 8;11:53. doi: 10.1186/s13007-015-0097-z

Table 1.

SQL queries for calculating the different levels of time aggregation

graphic file with name 13007_2015_97_Tab1_HTML.jpg

Example of SQL queries used for calculating time aggregation in MySQL and PostgreSQL. This example shows the aggregation of 5 minutes over the 12 months table Irradiance_12m. Different levels of aggregation can be obtained by changing the value of the minutes used in the DIV operation