Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Tune SQL query
We need more background. By this I mean
- primary keys, foreign keys - indexes - query plan - which optimizer are you using
Hth
--
Sybrand Bakker, Oracle DBA
<weijendavid_at_my-deja.com> wrote in message
news:82rpoe$g3p$1_at_nnrp1.deja.com...
> Hi, all
>
> Does anybody know how to tune the query below so it doesn't take
> "Forever" to run, yes, I mean forever...since it never return.
> Here is the query:
>
> -----------------------------------------------------------------------
> delete from caritemoption o where o.caritemid in
> (select ci.caritemid from caritem ci, car c
> where ci.carid = c.carid
> and upper(c.first_name) = 'xxx'
> or upper(c.last_name) = 'yyyy');
> -----------------------------------------------------------------------
> There are so many methods introduced in the book but it just makes
> things more confusing. Please help.
>
> Thank you.
>
> David.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Fri Dec 10 1999 - 15:34:14 CST
![]() |
![]() |