I am trying filter based on a date range that should only go to 2023-01-01 (or first day of the next year) that corresponds to a field and it's date range (current and previous dates).
My current filter in the where statement includes this but unsure how to set the first of the next year.
select * from df
where year(split_start_date) = year(dateadd(year,+1,current_date()))
I am able to filter based on year out of 'split_start_date' but want to set a cutoff to the first day of the next year.