I am trying to get week number for current year from the difference of 2 dates, is this possible? I know the WEEK function only takes one date/timestamp trying to find a workaround, maybe theres a way to use days function to get back to the week number, these are what I tried originally
Code:
select week(current_Date - (current_date - 100 days)) as week_num
from sysibm.sysdummy1
select days(current_Date) - days('2025-10-01') as days_between
from sysibm.sysdummy1



Comment