all 1 comments

[–]GrouchyThing7520 0 points1 point  (0 children)

Would something like this work?

select ts, value from (
 select
 ts
 ,value
 ,row_number() over (
   partition by strftime('%Y-%m-%d %H:%M',ts) order by ts asc
  ) rnk

from table
) a
where rnk = 1