Hi Tarun,
Can you be more specific?
The reason we are using FLAG is because after a data load, the ARCHIVE table might contain data from different months, we just need the most recently two months in the ARCHIVE, regardless of if they are not the current month(i.e. March'16) and the previous months(i.e. Feb'16).
Thank you.
Meichun