I have 3 tables in SQL Server Table1
, Table2
and Table3
where one column in Table1
has comma-separated PK
values of the other two tables.
Now I want to separate the values from the column of Table1
and use that to select the data from other two tables according to the values found.