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.
Author |
Topic |
vision.v1
Yak Posting Veteran
72 Posts |
Posted - 2012-11-12 : 04:56:25
|
Hi,I would like to join two tables based on fields of varchar() typesThe difference here is that this 'ON' condition will not be a conventional one like thisSELECT * from TABLE_A as A inner join TABLE_B as Bon A.Col=B.ColInstead I want to be a join based on pattern matchingSELECT * from TABLE_A as A inner join TABLE_B as Bon A.Col LIKE 'B.Col%'Please Advise. |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2012-11-12 : 05:27:32
|
on A.Col like B.Col + '%' Too old to Rock'n'Roll too young to die. |
|
|
|
|
|