Tags / rows
Adding Missing Rows to Each Group with R's tidyr Package using the complete Function
Grouping Rows in SQL Based on Column Sum Value Without Exceeding a Specified Limit
Counting Consecutive Values in Rows Using RLE Function
Creating Additional Rows in SQL Server Select Statements: Techniques Using CTEs and Derived Tables