troubleshooting Question

How to join two table with partial match

Avatar of Cobra967
Cobra967Flag for United States of America asked on
Microsoft SQL Server
4 Comments2 Solutions159 ViewsLast Modified:
Hello, need your expect help to refine my View in order to join two tables with partial match of the whole word list. In the attached screenshot, ProductID 12 and 36 should not be listed because the whole word in ProductName is not = to "Mix" but SillMix and MixPastora.  

SELECT        dbo.Products.ProductID, dbo.Products.ProductName, dbo.NAMES.FullName
FROM            dbo.Products INNER JOIN
                         dbo.NAMES ON dbo.Products.ProductName LIKE '%' + dbo.NAMES.FullName + '%'
Output-Example.jpg
ASKER CERTIFIED SOLUTION
Cobra967

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
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 2 Answers and 4 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