I have data like table A. I try to write a sql code to change the Flag column value to 1 wherever the pervious month (column Date) Flag value is 1 for each ID.