function in select and where clause - performance



If i have a function that returns a termination date that I want in my
insert select source, and I decided to conditino the the functions
result in the where clause, will that impact performance with a second
call two the function?

Any way condition the results of the function without calling it?


insert into CAP_CUST_1
(BTN, STATUS, PLAN_BEGIN, REASON, PLAN_END, BILL_METH)
select distinct an.mcman_cdani BTN,
st.status_group STATUS,
trunc(an.mcman_dtfecestado) PLAN_BEGIN,
an.mcman_glmotivo REASON,
pk_fees.fn_GetTerminationDate(an.mcman_cdani,

an.mcman_dtfecestado,
endperiod)
PLAN_END,
st.bill_method BILL_METH
from mcman an
inner join vw_status_codes st on st.status_code =
an.mcman_glestado
inner join cap_cust_testlist t on t.btn = an.mcman_cdani
where trunc(an.mcman_dtfecestado) <= endperiod
-- I WOULD LIKE TO CHECK TO SEE IF TERMINATION DATE IS BEFORE A
PARTICULAR DATE HERE.

.



Relevant Pages

  • Re: Liking for their skin color
    ... >> Advice about legal resources is acceptable, ... meaning of "termination" is intended when I say she can't give advice ... used in this house because my wife is a nurse and the term is what ... I don't deny that it might be a reason, but I don't accept it as *the* ...
    (alt.usage.english)
  • Re: NULLs: theoretical problems?
    ... The specific reason might or might not be of interest to the ... contracts table had a single column to store both termination date and ... the reason why the contract was terminated - I'm pretty sure that you'd ... termination date and the reason why the contract is NOT terminated in a ...
    (comp.databases.theory)
  • Re: World of Woodturners (WoW)
    ... That "termination" doesn't sound like a bad thing. ... haven't seen any reason on this NG to worry about it. ... And the pictures ARE awesome. ...
    (rec.crafts.woodturning)
  • Re: How to wait for multiple threads simultaneously?
    ... would double the amount of threads for no particular reason. ... shared-memory message queue transporting 'event notifications', ... I/O-readiness of some file descriptor or termination of some thread ...
    (comp.os.linux.development.apps)
  • Re: The "Kid Law" in Las Vegas
    ... employer can terminate an employee for any reason or no reason at all. ... At which point the court will ask the employer for the real REASON for termination, and you would be well served to have one if you wish to prevail. ... They cannot kick you out for ANY reason. ... And the owners have to obey the law. ...
    (alt.vacation.las-vegas)