Hello,
I need to get the AVG from my data grouped by date.
Example:
DATA:
Timestamp ; float ; float ; float
06.02.2014 19:40:00;12611.63;9752.76;8699.21;
06.02.2014 19:40:00;12584.78;9732.45;8758.79;
06.02.2014 19:40:01;12626.25;9716.77;8756.91;
06.02.2014 19:40:01;12623.77;9773.17;8731.25;
06.02.2014 19:40:02;12567.35;9718.18;8578.38;
06.02.2014 19:40:02;12575.7;9751.16;8129.44;
Now i want to group the data by the date in seconds and calculate the AVG:
Result should be like that
06.02.2014 19:40:00;12597,5; ...
06.02.2014 19:40:01;12624,5; ...
06.02.2014 19:40:02;12571; ...
How i do this in Vertica
In MSSQL I made it like that Screenshot.
(There the sql statement calculate the AVG for data grouped by hours)
I need this for seconds, minutes, hours, days
Thanks for help.

