What is the best way to get the daily average. Data will have 2 values ββper day, for example:
Date Value 1/1/2012 4:00 10.00 1/1/2012 16:00 11.00 1/2/2012 4:00 11.22 1/2/2012 16:00 13.55 etc.
Select CAST(DateColumn as date), AVG(Value) From Table Group By CAST(DateColumn as date)
select date, avg(value) from yourTable group by date
select cast(Date as date), avg(Value) from Table group by cast(Date as date)
Source: https://habr.com/ru/post/1401590/More articles:How to pass environment variable in Sun Grid Engine? - bashC - Parameterized Macros - cREST server security on a REST server and Android client security - androidHow to add bonus effect to marker added to openlayers - mapSeq toDictionary - f #jQuery to get elements with id with any of many constants - jqueryHow to determine if a process is running, but has not yet quit? - c #Change layout in Resharper? - visual-studioHow to enable copy / cut / paste jMenuItem - javaHow can I debug test cases executed by Tycho? - javaAll Articles