SQL

I’ve been working with SQL since around the year 2000. Over that time I have worked with MySQL, Oracle, SQL Server, PostgreSQL, and SQLite.

Grouping runs of data in SQL

There have been a handful of times over the last few years where I have needed to take time series data and group the runs of data together to determine when a certain value changed, and how long it stayed that way. Sample Data We have a log table that, after keeping only the columns

Grouping runs of data in SQL Read More »