Unix Technical Forum

function in select and where clause - performance

This is a discussion on function in select and where clause - performance within the Oracle Miscellaneous forums, part of the Oracle Database category; --> If i have a function that returns a termination date that I want in my insert select source, and ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 12:07 PM
jobs
 
Posts: n/a
Default 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com