I want to exclude every 0 in the column "Hoi"
select address, min(from_unixtime(time)) "Aankomsttijd", max(from_unixtime(time)) "Eindtijd",
TIMESTAMPDIFF(MINUTE,min(from_unixtime(time)),max(from_unixtime(time))) "hoi"
from sensordata1
group by address
I tried a where statement but it displayed "Unknown column hoi in where statement."