I have a table like this
"id, capture_date, data1, data2"
The capture_date field is a DATETIME field in mysql.
A script is run to capture some data (data1 INT and data2 INT)
Now I would like to total the data1 and data2 per hour.
So I need to group the capture_date field for the hour but total the data1 and data2 fields.
Any one knows how? Ive hardly worked with DATETIME field.
ps: The capture hasn’t started yet, and I am still able to change the fieldtype if needed.
Transform
DATETIMEfield withDATE_FORMATso you get the hours per day and group over this expression