I need to create a query which extracts data from two tables, something like this :-
select 1.name
,1.code
,2.name
,2.code
from data 1
, data 2
where substr(1.code, 2) = substr(2.code,2) (+)
But, my outer join (+) won't work, I get ORA-00933 SQL Command not properly ended.
I've tried putting in
where (substr(1.code, 2)) = (substr(2.code,2)) (+)
where (substr(1.code, 2) = substr(2.code,2)) (+)
where substr(1.code, 2) = (substr(2.code,2) (+))
with out any success.
Any ideas much appreciated !!!
Tim
select 1.name
,1.code
,2.name
,2.code
from data 1
, data 2
where substr(1.code, 2) = substr(2.code,2) (+)
But, my outer join (+) won't work, I get ORA-00933 SQL Command not properly ended.
I've tried putting in
where (substr(1.code, 2)) = (substr(2.code,2)) (+)
where (substr(1.code, 2) = substr(2.code,2)) (+)
where substr(1.code, 2) = (substr(2.code,2) (+))
with out any success.
Any ideas much appreciated !!!
Tim