Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: table join
the answer is just do it exactly like you said
a.lastname||a.firstname=b.lastname-firstname
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Roger Xu
Sent: Wednesday, February 01, 2006 3:07 PM
To: Oracle-L_at_Freelists. Org (E-mail)
Subject: table join
Table A:
Lastname (Mike)
Firstname (Johnson)
Phone(323-442-5678)
Table B:
Lastname-Firstname(MikeJohnson)
StreetAddress(1242 Main St.)
Zip(76222)
How do I join these two tables?
select B.Lastname-Firstname,A.Phone,B.StreetAddress,B.Zip
from A,B
where B.Lastname-Firstname = A.Lastname + A.Firstname
Basically, how to concatenate two fields in the where clause?
Thanks,
Roger
This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material.
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Feb 01 2006 - 15:11:47 CST
![]() |
![]() |