I have this query… I want to have the current date minus the weekday to get the date for all mondays. however since current_date is a date and DOW is double I’m getting an error
select extract(day from(current_date)) - extract(dow from current_date)
thanks
I don’t get an error in 9.2. Anyway it will fail for the first days of the month:
The correct way: