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

join on text fields with different formats...

Status
Not open for further replies.

AWEinCA

Programmer
Oct 18, 2000
35
US
I have two (2) tables that I want to JOIN together:

One (1) table has SSN formatted as "111223333"
The other table has SSN formatted as "111-22-333"

These are not technically equal. How do I JOIN these two (2) tables on SSN?

I have tried but it doesn't work:
SELECT ....
FROM ...
WHERE (left(c.SSN,3) & " - " & Mid(c.SSN,4,2) & " - " & right(c.SSN,3)) = b.SSN

THanks in advance for ANY help you can give,
Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top