I have to calculate a week number depending on a date for a customer. their fiscal calendar is different than the regular calendar , so I can't use the usual date to week number conversion. so in the customer_calendar table I have three columns year_nbr, wk_no , week_ending_date .How can I calculate the week number for a particular date? I need the week nbr to map to another table so I can calculate the sale per item in each week.
Thanks for your help in advance!
↧