Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

MS SQL query problem

$
0
0

Hi,

I've got an application which returns data in the format [Value1] [Value2] [Value3] - It adds the square brackets to the result. So it's essential just a string

I need to find rows in another table which contain any of the individual values returned.

I've tried nested replace commands to change the string to 'Value1,Value2,Value3' and then trued using is in a select statement something like

Select Field1, Field 2 From Table Where Field1 IN

I get no data returned.

Is it possible to modify the string in SQL to allow me to perform an IN or LIKE to return the data ?

Thanks


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>