Re: A function used in select clause and where clause.
From: Jusung Yang <JusungYang_at_yahoo.com>
Date: 6 Jun 2003 17:59:49 -0700
Message-ID: <130ba93a.0306061659.6a8cd8a9_at_posting.google.com>
Date: 6 Jun 2003 17:59:49 -0700
Message-ID: <130ba93a.0306061659.6a8cd8a9_at_posting.google.com>
select c1 from (select MYFUNCTION(SALARY) c1 from EMPLOYEES) where c1>1000000;
Two things you can try:
1. Function based index. If this is possible, the function will not
even be used during the query.
2. Materilized view. Materialize the function, similar to FBI. But you
have to take care of the refresh of course.
- Jusung Yang