I've this values in a column value named [T] (varchar(100))
:
AS00516003,QD00516009,XD00516089
How can I get the following string in order to get the results into IN statement:
'AS00516003','QD00516009','XD00516089'
Because If I do this query with the first value I don't get any values:
SELECT *
FROM [dbo].[TABLE]
WHERE [NUMBER] IN (SELECT [T] FROM [dbo].[TEST])