Use column to search string column

I'm doing a small audit on our data and
I want to take a column that has a long string that separates product models with a comma and see if any of those models are not valid from  separate table column. This validation is based on the model column of the manufacturer table.

So the manufacturer table has the following data:
Model    |   manufacurerid  | manufacturername
xxx1       |         1                     |  delta
xxx2       |         1                     | delta
xxx3       |         3                     |  alpha
xxx4       |         2                     |  beta
xxx5       |         1                     | delta
xxx6       |         3                     |  alpha


The manufacturerenrollment table has the following data:

ManufacturerID  |  Model
1                            |   xxx1, xxx2, xxx4, xxx5
3                            |  xxx3, xxx6

- So i want to find out what model and manufacturer from the manufacturer table does match in the model column of the manufacturerenrollment table.

So the results would be the following because the xxx4 belongs to manufacturer 2 and not 1:
model   | manufactuerid   |   manufacturer
xxx4       |       2                    | beta

I would prefer not to use the contains function only for the mere fact that i don't have the rights to do a full-text index in the manufacturerenrollment table.
Southern_GentlemanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Eyeballeth thy article T-SQL:  Normalized data to a single comma delineated string and back, starting with the line 'Comma delineated string to normalized data', to take your manufacturerenrollment table and make it normalized so that you can run the query.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Southern_GentlemanAuthor Commented:
Thanks Jim, that was a great article. It will work perfect for my scenario
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.