952: CURSOR C
953: IS
954: select count(*)
955: from ( select rownum rnum 956: from sys.all_objects 957: where rownum <= p_to_date - p_from_date)
958: where to_char( p_from_date+rnum, 'DY' ,'nls_date_language=english')
959: not in ( 'SAT', 'SUN' );
960: BEGIN