Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Syntax for joining two tables on SSN

Author  Topic 

Trininole
Yak Posting Veteran

83 Posts

Posted - 2010-08-31 : 15:17:25
What is the syntax for joining two tables by SSN(Social Security Number) with one table containing SSN's with hyphens and the other table containing SSN's without hyphens?

Roger DeFour

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-08-31 : 15:18:40
[code]on REPLACE(a.ssn, '-', '') = b.ssn[/code]
Go to Top of Page
   

- Advertisement -