Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Calculating the Week of the Year when "Stat Week" runs Sunday through Saturday.
I am attempting to calculate a "Stat Week" (week of year) based on a
date value. Unfortunately our "Stat Weeks" run from Sunday to
Saturday. These are the rules as they have been explained to me:
This renders the rather simple function to_char(datevalue, 'WW') inaccurate in for our situation.
Other than looping every single day of the year to get to the value needed, does anyone have an easier/faster/simpler solution? Received on Tue Feb 08 2005 - 15:22:30 CST