Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

table cluster of three tables and two different keys...

XenofonJun 1 2010 — edited Jun 2 2010
Hi there,

here is my situation (Oracle 10gR2): As an example I take the Oracle OE-Schema

select *
from customers a, orders b, order_items c
where a.customer_id = b.customer_id
and b.order_id = c.order_id;

Hopefully this SQL makes clear, what I intend to state: a SQL, joining three tables, going from PK to FK. So, say, the case corresponds the case for cluster tables: DML, SELECTs mostly occur on all three tables in a correlated way.

So since I query almost always, all three tables, joined together, I would try to cluster them. But how, since I have a different join condition for each pair?

Should I create two clusters, of customers and orders on customer_id and of orders and order_items on order_id? Can a table be in two clusters?

Thanks for any suggestions!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2010
Added on Jun 1 2010
9 comments
1,517 views