Counting running total on time series where condition is X – Postgresql
I have a SQL table of date entries with three columns: date, item, and status. The table appears like this: date item status 2023-01-01 A on 2023-01-01 B on 2023-01-01 C off 2023-01-02 A on 2023-01-02 B off 2023-01-02 C…