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 |
Ozzie6935
Starting Member
1 Post |
Posted - 2012-06-04 : 20:03:33
|
Hello gurus I need to make a join where one column is equal to part of another column after period (.), its sql 2008Column_1ChairTablesofa====Column_2whatever.Chairsomething.sofaHowever.tableso column_1 = column_2 but only after period, can it be done? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-06-04 : 21:32:13
|
[code]....FROM table1 t1INNER JOIN table2 t2ON t2.Column_2 LIKE '%.' + t1.Column_1[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2012-06-05 : 05:27:53
|
Are the columns part of same table? Then you dont need a joinMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|