How can I join two tables, where one of the tables has multiple comma separated values in one column that reference an id in another column?
id
1st
Maybe this uglyness, I have not checked results:
select names.name, courses.course_name from names inner join courses on ',' + names.course_ids + ',' like '%,' + cast(courses.course_id as nvarchar(20)) + ',%'