Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> outer join

outer join

From: Jim Poe <jpoe_at_fulcrumit.com>
Date: 02 Jan 2001 19:34:37 GMT
Message-ID: <92tagd$atn@dispatch.concentric.net>

I have the following four tables:
Contact
  CTAC_ID Office_Addr
  OFFICE_ADDR_ID
  CTAC_ID
  ADDR_ID Contact_Addr

  CTAC_ADDR_ID
  CTAC_ID
  ADDR_ID

Address
  ADDR_ID
  STREET Office_Addr and Contact_Addr are details of Contact. Address is a detail for both Office_Addr and Contact_Addr.

I want to create a view that contains CTAC_ID and STREET for all contacts. It should contain a row for each contact's street whether it is an office address or a contact address. It should also contain a single row if the contact has no address. Can this be done?

--
Jim Poe ( jpoe_at_fulcrumit.com )
Received on Tue Jan 02 2001 - 13:34:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US