Load data: Min and max value by day in Data Load Editor
Hi everyone,
Could you please help me with the script below?
I need to import the measurements from the last 30 days (this is already done and it works) and for each datetime the min value and max value corresponding to that datetime.
What should I add to the script below?
Many thanks.
M.
[measurements]: LOAD [id] AS [measurements.id], [deviceid], [datetime] AS [measurements.datetime], Date(floor([datetime]) , 'DD/MM/YYYY') as [measurements.date], [value], [measurementlistid]; SELECT id, deviceid, datetime, `value`, measurementlistid FROM ebdb.measurements WHERE datetime >= '$(v30DaysAgo)'