I am trying to get the MAX() or the MIN() value of a dataset.
MAX()
MIN()
Sample data:
equipment_id, value, updateTimestamp 7
The value appears to be stored as a string, rather than as a number. Try this instead:
SELECT dv.equipment_id, ROUND(MIN(cast(dv.value as decimal(5, 2))), 2) as value