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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oracle joins using functions

Status
Not open for further replies.

julianbar

Programmer
Sep 5, 2002
5
US
I have been trying to join two tables A and B

I want to join them by the substr(fielda,1,2)=substr(fieldb1,2)

I want to include all records in table A, even when there is no match.

Can I use a plus sign using functions.

When I try this it works
substr(fielda,1,2)=substr(fieldb1,2)

However this does not work
substr(fielda,1,2)=substr(fieldb1,2)(+)


???

Thanks
 
Try this:
substr(fielda,1,2)=substr(fieldb(+),1,2)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top