I have table with Timestamp, temperature and humidity. I want to have the average temperature in the periods where the humidity is above 80%. Something like
SELECT MIN (DTM), MAX (DTM), AVG(TMP) GROUP BY (WHERE HMD>80)
Is that possible?
Thank you
Hugo
What I need is to define periods that start when the humidty rise above 80% and end when it comes bellow. Then I have to get the BEGIN timestamp the END timestamp and the average temperature