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 -> Design question

Design question

From: Jim Poe <jpoe_at_fulcrumit.com>
Date: 12 Oct 2001 18:44:28 GMT
Message-ID: <9q7dmc$dat@dispatch.concentric.net>


I have two tables:

Create table CUST (

  Cust_id number(10),
  Name_First varchar2(10),
  Name_Last varchar2(15));

Create table CUST_AKA(
  Cust_Aka_Id number(10),
  Name varchar2( 15 ),
  Cust_Id number(10));

I would like to create a view with Cust_Id, Name.

For any Cust_ID, the view would consist of 2 or more rows. One where Name = Cust.Name_First, one where Name = Cust.Name_Last, and one row each for all values in Cust_AKA.Name.

What would be the most efficient way to accomplish this?

Thanks

--
Jim Poe (jpoe_at_fulcrumit.com)
Received on Fri Oct 12 2001 - 13:44:28 CDT

Original text of this message

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