I am joining two tables in a query, where the value in Table 1 foreign key column "authorsid" corresponds to the Table 2 primary key "authorsid". My problem is that some rows in the foreign key table have multiple comma-delimited values ("46, 13"
and my SELECT statement fails with the message : Syntax error converting nvarchar value "46, 13" to datatype int.
Of course what I want is for the query to LOOP THRU the list of each value in turn and use the value as the PK lookup in the other table.
How do I get it to do that?
Of course what I want is for the query to LOOP THRU the list of each value in turn and use the value as the PK lookup in the other table.
How do I get it to do that?