Tags / gaps-and-islands
Summing Over Rows Based on Column Value Using PostgreSQL Window Functions
Finding the Longest Negative Series in PostgreSQL: A Step-by-Step Solution
Using Window Functions in Amazon Redshift to Aggregate Conditionally
SQL Window Functions for Aggregate Calculations with the COALESCE and MAX Approach
BigQuery Data-Grouping: A Step-by-Step Guide to Combining Similar Data Points