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

Home -> Community -> Usenet -> c.d.o.tools -> Re: views and joins

Re: views and joins

From: Frank <franjoe_at_frisurf.no>
Date: Mon, 4 Jun 2001 12:25:18 +0200
Message-ID: <0nJS6.4984$vu4.515354@news3.oke.nextra.no>

Hi!

I guess/hope you actually mean:
>
> VIEW V
> ID DATA_A DATA_B
> '123' 'a-data' 'b-data'
> '12____4____' null 'b-data2'

Might be very slow, but try:

CREATE VIEW v_my_view
AS
SELECT a.id_a, a.data_a, b.data_b
FROM table_a a,

            table_b b
WHERE a.id_a = b.id_b(+)
UNION
SELECT a.id_a, a.data_a, b.data_b
FROM table_a a,

            table_b b
WHERE a.id_a(+) = b.id_b
/

Frank
Frank Received on Mon Jun 04 2001 - 05:25:18 CDT

Original text of this message

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