troubleshooting Question

sql server search a table field like another table field

Avatar of Sam OZ
Sam OZFlag for Australia asked on
DatabasesMicrosoft SQL ServerSQL
2 Comments1 Solution20 ViewsLast Modified:
I have two sql server 2016 tables Table1 , Table2   with a fled myName in both filed
How can have a query that looks a table1 myname like table2 myname
I tried table1.myName like '%'  ||  table2.myName || '%'    but that seems to be not correct
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros