Hi Avinash,
Thank so much for your notice. Yes, that would be an issue that we will run into, when start and end date of week belong to the specific calendar. I can handle this issue on Java, but in SQL script I need to pay attention more when writing the script. My product is used on around the world, that will be tough to ensure the script works correctly for all cases .
Thanks
Khoa Tran