Feb 9, 2005 #1 kgkane Programmer Feb 8, 2005 7 US SELECT * FROM table WHERE columname1 LIKE '%' + columname2 + '%' How do I get this type of query to work? Kevin
SELECT * FROM table WHERE columname1 LIKE '%' + columname2 + '%' How do I get this type of query to work? Kevin
Feb 9, 2005 Thread starter #2 kgkane Programmer Feb 8, 2005 7 US OK let me clarify a little more here. Here's essentially what I'm trying to do in MSSQL: UPDATE Table1 SET col001 = table2.Col007 FROM Tabl1 JOIN Ntable2 ON (Where the text in table1.col002 can be found in table2.col001) Hope this helps. Again thanks in advance for any help/suggestions. Kevin Upvote 0 Downvote
OK let me clarify a little more here. Here's essentially what I'm trying to do in MSSQL: UPDATE Table1 SET col001 = table2.Col007 FROM Tabl1 JOIN Ntable2 ON (Where the text in table1.col002 can be found in table2.col001) Hope this helps. Again thanks in advance for any help/suggestions. Kevin
Feb 10, 2005 #3 JamesLean Programmer Dec 13, 2002 3,059 GB Code: UPDATE t1 SET col001 = t2.col007 FROM tabl1 t1 JOIN ntable2 t2 ON t2.col001 LIKE '%' + t1.col002 + '%' --James Upvote 0 Downvote
Code: UPDATE t1 SET col001 = t2.col007 FROM tabl1 t1 JOIN ntable2 t2 ON t2.col001 LIKE '%' + t1.col002 + '%' --James