I have some data:
period | id_account | float_value
24217 | 303003 | 0
24218 | 303003 | 0
24219 | 303003 | 1
24220 | 303003 | 1
24221 | 303003 | 0
24222 | 303003 | 0
I need to group this data like that:
begin_period | end_period| id_account | float_value
24217 | 24218 | 303003 | 0
24219 | 24220 | 303003 | 1
24221 | 24222 | 303003 | 0
I tried row_number by partition and while loop but it didn't work.
