I am trying to bucket dates that fall within a 30-day window of each other in SQL. For each ID number in the example data below, how can I assign a bucket number that increa