title: Time aggregation in SQL
body: <p>I have a data-set which includes time {hh,mm,ss} and temperature.
  I want to aggregate the temperature with respect to the time.
  For each minute in a specific hour there are number of temperature records and I want to calculate the average of them to have a single value for each minute.</p>
  
  <p>Thanks in advance.</p>