Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: views and joins
> > VIEW V
> > ID DATA_A DATA_B
> > '123' 'a-data' 'b-data'
> > '12____4____' null 'b-data2'
Ooops, yes, that was a typo
> 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
Did you mean b.id_b here or am I wrong?
> FROM table_a a,
> table_b b
> WHERE a.id_a(+) = b.id_b
Thanks for the help, at least now it gives the correct result. It might get
a little
complicated when the number of tables increase to 10-15 and the number
of rows in the tables increase...
![]() |
![]() |