Search code examples
Removing duplicates in a sequence...


sqlsql-servert-sqlwindow-functionsgaps-and-islands

Read More
SQL interview question...


sqlgaps-and-islands

Read More
Grouping after sorting...


sqlsqliteaggregategaps-and-islands

Read More
How do I group on contiguous ranges?...


sqlsql-serversql-server-2005t-sqlgaps-and-islands

Read More
Get a list of dates between two dates...


mysqlsqldategaps-and-islands

Read More
Changing data structure from "Date" to "From_Date" and "To_Date" based...


sqlteradatagaps-and-islandsteradatasql

Read More
Find the Active Item for a Given Date With Time Intervals and Item Criteria...


sqlsql-servergaps-and-islands

Read More
SQL explode records that have overlapping date ranges...


sqlsql-servergaps-and-islands

Read More
Create Iterative Groups in SQL where certain thresholds start a new group number...


sqlgoogle-bigquerygaps-and-islands

Read More
Using SQL Server window functions with year and month(Period of time)...


sqlsql-serverwindow-functionsgaps-and-islands

Read More
SUM unique GROUP BY values in sqlite and count groups of consecutive values...


sqlsqlitegaps-and-islands

Read More
Gaps and Islands Getting Last Island Window...


sqlsql-servergaps-and-islands

Read More
Concat the first and last sequential line number with a hyphen...


sql-servert-sqlgaps-and-islandssql-server-2019

Read More
Detect 1st row of an ordinal chain using recursive CTE or alternative...


sqlsql-servercommon-table-expressiongaps-and-islands

Read More
Query that groups rows based on the difference between datetime column value from a previous row?...


sql-servert-sqlgaps-and-islands

Read More
Postgres Fixed 7-day window shifting data...


sqlpostgresqlgaps-and-islands

Read More
SQL Gaps and Islands with multiple overlapping criteria...


sqlsql-servert-sqlgaps-and-islands

Read More
Calculate Date Difference for Non-Consecutive Months...


sqlsql-servert-sqlwindow-functionsgaps-and-islands

Read More
Sum a Column of a Timeseries by an Order Number when the Ordernumber is not unique...


sqlpostgresqlwindow-functionsgaps-and-islands

Read More
min/max date range within group...


sqlpostgresqldatetimewindow-functionsgaps-and-islands

Read More
Copy an ID to rows with adjacent timestamp ranges sharing a class...


sqlpostgresqlwindow-functionsgaps-and-islands

Read More
Roll Up with column changes...


sqlsql-servergaps-and-islands

Read More
Streak for a given endDate SQL (Postgres)...


sqlpostgresqlwindow-functionsgaps-and-islands

Read More
How to calculate average stock status in day...


sqlpostgresqlwindow-functionsgaps-and-islandsgenerate-series

Read More
How to GROUP_CONCAT row values, but break groups by an arbitrary "gap" flag?...


sqlsqlitegaps-and-islandsgroup-concat

Read More
Insert missing rows in time series consumption history...


sqlpostgresqlamazon-redshiftgaps-and-islandsapache-superset

Read More
Select rows without overlap / dynamic 1 hour intervals...


sqlmysqlintervalsgaps-and-islands

Read More
Windowing Function To Keep Track Of "Latest Seen" Row...


sqlsql-servergaps-and-islands

Read More
How to label groups in postgresql when group belonging depends on the preceding line?...


sqlpostgresqlwindow-functionsgaps-and-islands

Read More
Find a gap > 10min and select begin/end dates in timestamp logs...


sqloracle-databasegaps-and-islands

Read More
BackNext