Grouping Rows Based On A Consecutive Flag In Sql Redshift Stack

Grouping Rows Based On A Consecutive Flag In Sql Redshift Stack