This SQL dont use indexes

From: Odd Morten Sveås <odd.morten.sveas_at_accenture.com>
Date: 11 Nov 2002 13:41:42 -0800
Message-ID: <4306a83.0211111341.59cb28d7_at_posting.google.com>


Hi

I have a problem here.

The following SQL woun't use indexes whatever I do.

select

   a.trx_line_id
, a.description
, sum(a.amount)
, b.date

from

   mother_table b
, child_table a

where

   b.trx_id = a.trx_id;

The trx_id is primary_key in mother_table and the first column in a 3 column index for the child table.

The child_table contains abount 4 mil rows, and the mother_table abount 500 000.

When I do an explain_plan bount the mother- and the child_table are accesed by full table scan.

What do I do wrong? Received on Mon Nov 11 2002 - 22:41:42 CET

Original text of this message