0
私は自分のデータセットをクリーンアップしたいと考えています。左側は生データがどのように見えるかです。それは時間に基づく温度の読みです。あなたが使用することができます
select zone, temperature, time
from (select t.*,
lag(temperature) over (partition by zone order by time) as prev_temperature
from t
) t
where prev_temperature is null or prev_temperature <> temperature;
使用しているデータベースで質問にタグを付けます。また、あなたの出力のロジックを説明しようとします。 –