RE: table in ANSI JOIN *but not* being accessed at all?

  • From: "Taylor, Chris David" <ChrisDavid.Taylor@xxxxxxxxxxxxxxx>
  • To: 'Michael Moore' <michaeljmoore@xxxxxxxxx>
  • Date: Tue, 31 Jan 2012 13:59:45 -0600

I was mistaken.  The FK is on PS_CUST_ID on CU instead of CUSTOMER_ID

So the FK is CO.CUSTOMER_ID references CUSTOMER.PS_CUST_ID.

The CUSTOMER_ID in CU is not REFERENCED.


Chris Taylor
Sr. Oracle DBA
Ingram Barge Company
Nashville, TN 37205

"Quality is never an accident; it is always the result of intelligent effort."
-- John Ruskin (English Writer 1819-1900)

CONFIDENTIALITY NOTICE: This e-mail and any attachments are confidential and 
may also be privileged. If you are not the named recipient, please notify the 
sender immediately and delete the contents of this message without disclosing 
the contents to anyone, using them for any purpose, or storing or copying the 
information on any medium.


-----Original Message-----
From: Michael Moore [mailto:michaeljmoore@xxxxxxxxx] 
Sent: Tuesday, January 31, 2012 1:55 PM
To: Taylor, Chris David
Cc: Phillip Jones; oracle-l@xxxxxxxxxxxxx
Subject: Re: table in ANSI JOIN *but not* being accessed at all?

There is no reason to do the join because the RI tells us that the CU row HAS 
to be there. You are not pulling any data from CU and not filtering on data 
from CU. Right?


--
//www.freelists.org/webpage/oracle-l


Other related posts: