above below function is working fine for all the week days, but it is not working on Monday.
My req is when my query run in any day of week(Monday to Sunday) it will pull last week end date and my week start on Monday and ends on Sunday.
Can some one help me to reslove this issue ? current_date-dayofweek(current_date-2)-1
above below function is working fine for all the week days, but it is not working on Monday.
My req is when my query run in any day of week(Monday to Sunday) it will pull last week end date and my week start on Monday and ends on Sunday.
Can some one help me to reslove this issue ?
current_date-dayofweek(current_date-2)-1