troubleshooting Question

SQL Select Where the variable contains a singular value in string

Avatar of panhead802
panhead802 asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
3 Comments1 Solution430 ViewsLast Modified:
I need to create a simple sql select statement that will allow to select all of the records in a talbe that have the same ID tag that appear in a string value:

I have a variable value of 'ASD' the field in the table WIP_ID is a single character and I need to be able to return the results only if the single character is in the string variable.

This needs to be in one select as that number of ID's in the variable field will based on user input.

I am at a loss.

Any help would be great.

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

Join our community to see this answer!
Unlock 1 Answer and 3 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 1 Answer and 3 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