My table #temp is having IDs such as {1, 2, 3, 4, 5, 6, '3,4', '3,4,7'}
How to filter records for specific ID values? For example, the below query is giving 1 record in the result. But i need to get 4 records as follows:
--My Query
DECLARE @filter VARCHAR(100) = '3,4'
SELECT * FROM #temp WHERE Col1 in (@filter)
OUTPUT:
******
3,4
Expected records in the Output:
******************************
3
4
3,4
3,4,7
Please help me
ij