| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to Get Every two weeks settlement --allways Wednesday
Charles Hooper wrote:
> rjayanth_at_gmail.com wrote:
>
> You need a table with at least 780 rows in order to seed a counter,
> then it is just a matter of multiplying the counter by 14 to hit every
> other week: DBA_OBJECTS, USER_OBJECTS, etc. For example:
>
> SELECT
> (TO_DATE('2006-07-19', 'YYYY-MM-DD') + (ROWNUM - 1) * 14) NEXT_DATE
> FROM
> DBA_OBJECTS
> WHERE
> ROWNUM<=780;
>
> Charles Hooper
> PC Support Specialist
> K&M Machine-Fabricating, Inc.
Not necessarily. Why not a pipelined table function that could be joined in the query (no table and no maintenance ... ever).
There is a demo PTF in Morgan's Library at www.psoug.org that shows how one is written and used in a join.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Sat Jul 29 2006 - 11:57:27 CDT
![]() |
![]() |