Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help needed for SQL Tuning...
Your "and exists" part is not needed here. Because you have already the
same filter in your sub select.
for the rest... waiting..
Titus wrote:
> Hello folks,
>
> Can someone assist in better tuning this query?
> It is taking over 45mins to complete the update.
>
> UPDATE supp_sec_tbl a
> SET a.descr =
> (SELECT b.descr
> FROM defn_tbl b
> WHERE b.rollcol = a.rollcol)
> WHERE a.dbase = :b1
> AND EXISTS (
> SELECT c.rollcol
> FROM defn_tbl c
> WHERE a.rollcol = c.rollcol);
>
>
> Titus
Received on Wed Jun 21 2006 - 13:44:18 CDT