Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outer join query help!

Status
Not open for further replies.

mkey

Programmer
Oct 3, 2001
288
CA
HI All,
My script looks something like this.

select a.name,b.filename
from table_a t1, table_b t2
where substr(a.name,1,8) (+) = substr(b.filename,1,8)

Obviously right now I'm getting an error using (+) this way. I need all the name records even if they don't match table_b filename. Any thoughts on this will help!
Thank you in advance!
 
You have to put the (+) next to the column, like:
select a.name,b.filename
from table_a t1, table_b t2
where substr(a.name(+),1,8) = substr(b.filename,1,8)

 
Sorry but I don't think that will work! I'm getting a ORA-01719 error!
 
oops! sorry it seems like its working!
thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top