From Fawzia.Malik@open-talk.co.uk Wed, 03 Oct 2001 04:00:52 -0700 From: "Malik, Fawzia" Date: Wed, 03 Oct 2001 04:00:52 -0700 Subject: Query In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain PLease can some one give me some advice on tuning this query.. delete from olsr10.op_orders where xmas_id in (193,207,245,300) and order_total = 0 and status_timestamp < to_date ('01-aug-2001','dd-mon-yyyy') / The explain plan for this is is quite costly as it does a full table scan: DELETE STATEMENT (choose) Cost (8636,68,2176) 1 0 1 DELETE OLSR10 OP_ORDERS 2 1 1 PARTITION RANGE (inlist) Pt id: 2 Pt Range: KEY(INLIST) - KEY(INLIST) 3 2 1 1 TABLE ACCESS (analyzed) OLSR10 OP_ORDERS (full) Pt id: 2 Pt Range: KEY (INLIST) - KEY(INLIST) Cost (8636,68,2176) Thanks in advance Fawzia This message is confidential and is intended for the addressee only; unless clearly stated that this disclaimer should not apply, this e-mail is not intended to create legally binding commitments on behalf of any company in the British Interactive Broadcasting Holding Limited group, nor do its contents reflect the corporate views or policies of any such company. Any unauthorised disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately.