Search code examples
A cumulative sum of consecutive workdays that resets to 1 when consecutive days = 0, per ID...


sqldatabasewindow-functionsimpalagaps-and-islands

Read More
Select the first instance of an action after the previous action...


sqlsql-servert-sqlwindow-functionsgaps-and-islands

Read More
Find records where length of consecutive values is less than threshold...


sqlpostgresqlgroup-bywindow-functionsgaps-and-islands

Read More
Get users who took ride for 3 or more consecutive dates...


sqlsql-serverdatabasewindow-functionsgaps-and-islands

Read More
Generating results based on gap between dates for a theatre...


mysqlsqljoinwindow-functionsgaps-and-islands

Read More
SQL - Group records in together based on start and end events...


sqlsql-serverdatabasewindow-functionsgaps-and-islands

Read More
Grouping date-ranges and Islands with uniq ID's without Partition by seperator...


sqlsql-serverdatewindow-functionsgaps-and-islands

Read More
T-SQL Remove Duplicates from Groups BUT NOT GET TOP 1 FROM EACH GROUP...


sqlsql-servert-sqlwindow-functionsgaps-and-islands

Read More
MySQL combine multiple rows into one based on matching dates...


mysqlsqldatabasewindow-functionsgaps-and-islands

Read More
SQL or LINQ: how do I select records where only one paramater changes?...


sqldatabaselinqwindow-functionsgaps-and-islands

Read More
How to Do Data-Grouping in BigQuery?...


sqlgroup-bygoogle-bigquerywindow-functionsgaps-and-islands

Read More
grouping records by a field and submit a query on each group in sql...


mysqlsqlsubquerygreatest-n-per-groupwindow-functions

Read More
max count for each partition in count windowing function MySQL...


mysqlwindow-functions

Read More
What is Another way to use division with window function and case when statement...


sqlpostgresqlwindow-functionscase-when

Read More
Carry forward values in Hive...


sqlhivewindow-functionslag

Read More
How to use division with window function and Case when statement...


sqlpostgresqlwindow-functionscase-when

Read More
A way to have a rolling summation...


mysqlsqldatejoinwindow-functions

Read More
In the current row, sum the data for rows that represent records for last week (7 days)...


sqlsql-serversumsubquerywindow-functions

Read More
SQL get the last time number was set to 1...


sqlsql-servert-sqlwindow-functionsgaps-and-islands

Read More
Using ROW_NUMBER() to Partition DataSets...


sqlsql-serverdatabaset-sqlwindow-functions

Read More
How can I create a moving average in SQL Server that resets for each unique group?...


sqlsql-serverdatabaset-sqlwindow-functions

Read More
How do I remove duplicate group key values and display detail items (mutiple group)...


sqlsql-serverdatabaset-sqlwindow-functions

Read More
Combine all previous columns to the current column...


sqlsql-serverstringwindow-functionsrecursive-query

Read More
Count() how many times a name shows up in a table with the rest of info...


sqlsql-servert-sqljoinwindow-functions

Read More
List or concatenate in SQL window function...


sqlsql-servert-sqlcountwindow-functions

Read More
Update Missing Values...


sqlsql-servert-sqlsql-updatewindow-functions

Read More
Getting max and latest rows in SQL...


sqlsql-servert-sqlgreatest-n-per-groupwindow-functions

Read More
select rows in sql with end_date >= start_date for each ID repeated multiple times...


sqlsql-serverdatewindow-functionsgaps-and-islands

Read More
How to select dates based on condition on another row in SQL?...


sqlsql-serverdategreatest-n-per-groupwindow-functions

Read More
Retrieve a particular month SQL Records from Master Table - CDC Enabled...


sqlsql-serverdategreatest-n-per-groupwindow-functions

Read More
BackNext