Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I have a few follow-on questions:Kumariaru said:I have to write a query for number of working days in a month.
...working_days(<today>,<tomorrow>)...
...working_days(sysdate,sysdate)...
[b]create or replace function[/b] workdaysbetween(p_begin [b]in date[/b],p_end [b]in date[/b]) [b]return number is[/b]
res [b]number[/b];
cou [b]date[/b];
[b]begin[/b]
cou:=p_begin;
res:=0;
[b]while[/b] cou<p_end [b]loop[/b]
cou:=cou+1;
[b]if[/b] to_char(cou,[i]'d'[/i]) [b]not in[/b] (1,7) [b]then[/b]
res:=res+1;
[b]end if[/b];
[b]end loop[/b];
[b]return[/b] (res);
[b]end[/b];
[b]create or replace function[/b] workdaysbetween(p_begin [b]in date[/b],p_end [b]in date[/b]) [b]return number is[/b]
res [b]number[/b];
cou [b]date[/b];
[b]begin[/b]
cou:=p_begin;
res:=0;
[b]while[/b] cou<=p_end [b]loop[/b]
[b]if[/b] to_char(cou,[i]'d'[/i]) [b]not in[/b] (1,7) [b]then[/b]
res:=res+1;
[b]end if[/b];
cou:=cou+1;
[b]end loop[/b];
[b]return[/b] (res);
[b]end[/b];
...working_days(sysdate,sysdate)...