Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: this cannot be then best way
akkha1234_at_gmail.com wrote:
> What if you have some holiday in between?
>
I'm thinking he handles that afterwards.
select count(*) from holidays where holiday_date between mydatestart and mydate ;
Yes there are boundary issues, but faster than looping for every day. (again this is all optimization for workdays X being relatively large most of the time this operation is called.
As always in performance tuning, the first key is: know your data.
Ed Received on Fri Jul 14 2006 - 16:09:42 CDT