select (next_day('26-oct-2005', 'FRI') - next_day('03-oct-2005', 'FRI'))/7 from dual